private static void confirmationEmail(string email, string customerName, string customerCode) { string messageBody = "hello world"; string url = "www.abc.com"; string hyperlink = "<a href='" + url + "'>" + " abc Distribution" + "</a>"; NetworkCredential logininfo = new NetworkCredential("example1@automob.com", "********"); MailMessage msg = new MailMessage(); msg.From = new MailAddress("communications@abc.com"); msg.To.Add(new MailAddress(email)); msg.Bcc.Add(new MailAddress("example2@abc.com")); msg.Subject = "Confirmation - Your password has been changed!"; msg.Body = messageBody; msg.IsBodyHtml = true; SmtpClient client = new SmtpClient("smtp.globetrotter.net"); client.EnableSsl = false; client.UseDefaultCredentials = false; client.Credentials = logininfo; client.Send(msg); }
smtp.globetrotter.net
abc.com
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)