protected void Button1_Click(object sender, EventArgs e)
{
MailMessage msg1 = new MailMessage();
msg1.To = "kunalchakraborty@gmail.com";
msg1.From = "info@sncindia.org";
msg1.Subject = "mailchk";
msg1.BodyFormat = MailFormat.Text;
msg1.Body = "Dear Sir,";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msg1);
}
No comments:
Post a Comment