In this post i am going to explain sending an email using .NET and get the confirmation from the user — by clicking the Link, which is send along with the email. To send emails you have to import the namespace ‘System.Web.Mail’. Following code snippet will show how..
private void sendMail()
MailMessage mailMsg = new MailMessage();
mailMsg.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = “your Server name”;
mailMsg.From = "your email address";
mailMsg.To = “to email address”;
mailMsg.Subject = “subject line of the mesg”;
mailMsg.Body = sBody;
In the above code most of the things are self explanatory.
To be contd… — How to get confirmation from the user?