MailMessage msg = new MailMessage(); msg.To = txtto.Text; msg.From = "swarupa.ummalaneni@gmail.com"; msg.Subject = txtsubject .Text; msg.Body = Output.InnerHtml; lblmessage.Text = "Sending..."; SmtpMail.SmtpServer = "smtp.yourISP.com"; SmtpMail.Send(msg); lblmessage.Text = "Sent email (" + txtsubject.Text + ") to " + txtto.Text;
SmtpMail.SmtpServer = "smtp.yourISP.com";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)