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.0Send e-mail when User createdSend e-mail when User created
Previous
 
Next
New Post
8/25/2008 5:18 PM
 

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. 


View Brenden Kehren's profile on LinkedIn
 
New Post
8/26/2008 1:29 AM
 

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 1:17 PM
 

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


View Brenden Kehren's profile on LinkedIn
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Send e-mail when User createdSend e-mail when User created


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