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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
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
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Send e-mail when User created
Previous Previous
 
Next Next
New Post 8/25/2008 3:18 PM
Resolved
User is offline b471code3
134 posts
www.froggeyestudios.com
9th Ranked


Send e-mail when User created 

I have a custom module where I create a user and I need to send the auto-generated email.  Is there a specific service  or trigger to call to get this email?  What my end user can do is create a new DNN user (in a custom module) based on their custom "company profile" infomation. 

 
New Post 8/25/2008 11:29 PM
User is offline Scott Allender
65 posts
www.scottallender.com
10th Ranked




Re: Send e-mail when User created 

Hi,
Are you looking to send an email exactly like the email sent when creating a user through the DNN gui?  Typically, in any module that I build that I need a notification for, I use the SendMail() method.  You can find it the DotNetNuke.Services.Mail namespace and it's a static (or shared) method, so you don't have to instantiate anything.  The cool thing about it is that it's got some decent overrides that make sending mail pretty easy.

Another nice feature in this method is that in one of the overrides, if you send it four empty strings, email will be sent using the host defaults.  I prefer this fashion because now my module can take advantage of the preconfigured settings and it's one less thing for me to have to maintain.

Hope this helps.


-- Scott Allender
http://www.scottallender.com
 
New Post 8/26/2008 11:17 AM
User is offline b471code3
134 posts
www.froggeyestudios.com
9th Ranked


Re: Send e-mail when User created 

Yes, just like the one sent in the DNN GUI.  What I want to do is take advantage of the built in localization.  If that isn't a good option I will try out the SendMail method.

 

Thanks

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Send e-mail when User created
 


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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

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