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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

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
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Custom email
Previous Previous
 
Next Next
New Post 8/26/2008 8:03 AM
Resolved
User is offline andym
9 posts
10th Ranked


Custom email 

I am building a custom control to allow a user to register more users on their own, and I am having a hard time finding the code to trigger an email to the user being registered.

I would like the person being registered to receive an email with a randomly generated password.  The person doing the registering would provide a first name, last name, username and email address for the new user.

 
New Post 8/26/2008 8:57 AM
User is offline Fooberichu
475 posts
www.seeleyware.com
8th Ranked


Re: Custom email 

You can use the DotNetNuke.Services.Mail.Mail.SendMail(...) function to send email to a user yourself, or you can even "manually" send email using the built in .NET mail functions (System.Net.Mail.SmtpClient).

If you want to see the code where it creates a user (currently), check User.ascx.vb "CreateUser" method and see that it fires off some events (OnUserCreated).  That is in UserUserControlBase which is defined in DotNetNuke.Entities.Modules.  The OnUserCreateCompleted event is handled in admin/Authentication/Login.ascx.vb line 909 (in my dev copy 4.7 so could be a different line) -- function is UserCreateCompleted.

You'll see in there that it has a strMessage = CompleteUserCreation(e.CreateStatus...) which, inside there, finally calls the DotNetNuke.Services.Mail.Mail.SendMail function.

Hope that helps.


-- Fooberichu
http://www.seeleyware.com
 
New Post 8/26/2008 11:18 AM
User is offline andym
9 posts
10th Ranked


Re: Custom email 

Thank you for the quick reply.  I will give it a try, thank you for the direction.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Custom email
 


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.

 


Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com
XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl
EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com

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