Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SendMail Method in DNNSendMail Method in DNN
Previous
 
Next
New Post
11/20/2007 1:43 AM
 

Hi Chris,

Just wanted to ask if you have any insights regarding my problem.

Thanks,

JR

 
New Post
11/20/2007 3:33 AM
 

JR,

I suggest using one of the overloads without SMTP-Server specification, otherwise you need to specify retrieve and pass enablessl, as boolean values cannot be detected for being null. This might be solved by a new mail class in a future version.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/2/2007 4:38 PM
 

Some Hosting Providers require that the DNN SMTP setting be set to:

SMTP Server:  127.0.0.1

For local host, this had happened to me I set it to my website and DNN said that it was ok

but it never sent the message until I changed the SMTP Server to 127.0.0.1 for Local Host!

Enjoy

 

 
New Post
4/27/2008 10:49 AM
 

Jr,

The SendMail function unfortunately will not bubble up the error into your try catch., however, the error is logged in the DNN's event log.

HTH


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
5/17/2008 7:55 AM
 

I have an issue that may be similar.  In my code I use the SendMail function several times.  It works anytime I hard code the receiver's email address me@aol.com but does not work when I use an intance of a UserInfo object even though I know from the debugger that OurUserInfo.email = me@aol.com

DotNetNuke.Services.Mail.Mail.SendMail(

"admin@mysite.com", OurUserInfo.Email.ToString, "", "Access Denyed", EmailBody, "", "HTML", "mail.mysite.com", "", "", "")

Again, this same line works successfully in several other places as long as I hardcode the second parameter and I know from the Debugger this line is being run and no errors are being returned.  But the emails are not being sent out.  I have no clue why not.  Thanks for any help.


I'm too poor for anything other than the community version
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SendMail Method in DNNSendMail Method in DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out