try { System.Net.Mail.MailMessage objMM = new System.Net.Mail.MailMessage(); objMM.From = new MailAddress(from-email, displayName); objMM.To.Add(new MailAddress(to-email)); objMM.Subject = subject; objMM.Body = message; objMM.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(EMAIL_SERVER); smtp.Credentials = new NetworkCredential(from-email, "Password"); smtp.Send(objMM); } catch (Exception) { throw; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)