Hi to all.I want to create registration form in asp .net, i want to send successfully notice send in user email id and email id and password also.
help some one.
How to send confirmation email to newly registering
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ChandrakerPosted Jun 10, 2011, 1:48 PM
On your register button click event get the values form your UI controls and prepare HTML string in the format you want to send email. And send that html text as email body to the email id given by the user.
MailMessage mailMsg = new MailMessage();
mailMsg .From = "your email id";
mailMsg .To = "user email id";
mailMsg .Subject = "email subject";
mailMsg .Body = "mail body";
mailMsg.BodyFormat = MailFormat.Html;
SmtpMail.Send(mailMsg );
Don't forget to configure smtp server details in web.config.
For more information on send email from ASP.net please refer below articles:
http://www.c-sharpcorner.com/UploadFile/mahesh/send_mai1l11152005235217PM/send_mai1l.aspx
http://www.c-sharpcorner.com/UploadFile/ahsanshakir/sendmailwithattachment08022007001737AM/sendmailwithattachment.aspx
manoj kumarPosted Jun 10, 2011, 1:27 PM
Sam HobbsPosted Jun 10, 2011, 1:11 PM