MailMessage m = new MailMessage(); SmtpClient sc = new SmtpClient(); m.From = new MailAddress("email@email.com", "Name Of Person"); m.To.Add(new MailAddress("email@email.com", "Name Of Person")); m.CC.Add(new MailAddress("email@email.com", "Name Of Person")); m.Subject = "Email Subject"; m.Body = sResultsHTML; AlternateView av = AlternateView.CreateAlternateViewFromString(sResultsHTML, null, MediaTypeNames.Text.Html); m.AlternateViews.Add(av); sc.Port = 25; sc.Host = "mail.email.com"; // Email server address IP or Hostname sc.EnableSsl = false; sc.Send(m);
Last Updated on October 26, 2015