SmtpClient smtpClient = new SmtpClient(); smtpClient.UseDefaultCredentials = false; smtpClient.Host = "smtp.yahoo.com"; smtpClient.Port = 587; smtpClient.Credentials = new NetworkCredential("xxxxx@yahoo.com", "myPassword"); smtpClient.EnableSsl = true; MailMessage mailmsg = new MailMessage("xxxxx@yahoo.com", "xxxxx@yahoo.com", "subject", "body"); mailmsg.Priority = MailPriority.High; smtpClient.Send(mailmsg);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)