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  |  

telerik -- supercharge your DNN websites
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


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.

 


Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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