Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Sending mail from within a module
Previous Previous
 
Next Next
New Post 8/6/2008 9:26 AM
User is offline Snoek8
52 posts
www.mexmax-internet.com
10th Ranked


Sending mail from within a module 

I am using the following code to send a mail from inside a module: Mail.SendMail(_Sender, _To, "", _Subject, _MailBody, "", "HTML", "", "", "", "");

This works fine if the SMTP server does not require authentication. If is does the mail does not get sent. How can I retreive the SMTP authentication values which are set in the host settings?

Stephan

 
New Post 8/6/2008 11:43 AM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: Sending mail from within a module 

If you have properly configured the SMTP authentication settings in the Host->Host Settings, passing empty strings as you have done should pull up the proper values for SMTPServer, SMTPAuthentication, SMTPUsername, SMTPPassword from host settings. It also appears that you have the correct order and count of parameters for this override of the SendMail method. Have you checked your host settings and tried sending a test email from the SMTP settings section of host settings?


Bill, WESNet Designs
 
New Post 8/11/2008 12:38 PM
User is offline Snoek8
52 posts
www.mexmax-internet.com
10th Ranked


Re: Sending mail from within a module 

Thank you for your reply. I think there was a problem with the mailserver because it is now working fine. I can confirm you can just provide the empty strings even if username and password are required. They get pulled from the host settings.

Thanks

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Sending mail from within a module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP