Using System.Net.Mail;
=====================
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("noreply@yourdomain.com");
mailMessage.To.Add(new MailAddress(txtEmail.Text));
string emailBody = "Test Asp.net Send Mail";
mailMessage.IsBodyHtml = true;
mailMessage.Subject = "Asp.Net Send mail";
mailMessage.Body = emailBody;
SmtpClient smtpClient = new SmtpClient();
smtpClient.Send(mailMessage);
lblInfo.Text = "Email has been sent";
Romana Akther
Comments
Kazi Mehedi Hasan
Md. Rifat