.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Send Login details to user after registration

Posted By: Rina     Posted Date: January 03, 2012    Points:5   Category :ASP.Net
How to send login detail to user after registration using mail in asp.net

Author: Amit Mehra             
Posted Date: January 03, 2012     Points: 20   


You can use MailMessage class to send mail using .NET framework..let me know if you need code to send mail..

Please "Mark As Answer " if this post help you.
Author: Rina             
Posted Date: January 04, 2012     Points: 20   

thank you sir...but I need code to send mail.. and I m confused that after registration directly user id and password will be sent to user's mail...how I can do that?? please reply..thank you..

Author: Sasi Prabhu             
Posted Date: January 06, 2012     Points: 20   

Try :

In web.Config

<network host="<smtp.servername.com>" userName="<UserID>" password="<Password>" port="<PortNo>" defaultCredentials="false"/>

MailMessage mailmsg = new MailMessage();
mailmsg.From = new MailAddress(ConfigurationManager.AppSettings["ReplyEmail"].ToString());
mailmsg.IsBodyHtml = true;
mailmsg.Subject = txtSubject.Text;
mailmsg.BodyEncoding = System.Text.Encoding.UTF8;
mailmsg.Body = txtBoby.Text;
SmtpClient smtpc = new SmtpClient();

Thanks & Regards,
Sasi Prabhu.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend