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  |  

DotNetNuke Marketplace
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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
63 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.

 


Sunset Hill Solutions - Consulting and Development
We offer general DNN consulting services - including custom module development and commercial module integration/setup.
www.sunsethill.ca
MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com

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