SmtpClient sC = new SmtpClient("domain.com"); sC.Host = ConfigurationManager.AppSettings["servername"]; sC.Port = 25; sC.Credentials = new System.Net.NetworkCredential("username","password"); //smtp.EnableSsl = true; sC.Send(mM);
"domain.com"
smtp.gmail.com
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)