// NameSpace using System.Web.Mail; MailMessage mymail = new MailMessage(); mymail.To = txtTo.Text.ToString(); mymail.From = "[DELETED]@hotmail.com"; mymail.Subject = txtSubject.Text.ToString(); mymail.Body = txtMessage.Text.ToString(); SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(mymail);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)