public string sendMail1(string tomail, string id, string body1) { MailMessage mail = new MailMessage(); mail.To.Add(tomail); mail.From = new MailAddress(mfrommail); mail.Subject = "Verification Mail "; mail.Body = body1; mail.IsBodyHtml = true; mail.Priority = MailPriority.High; SmtpClient smtp = new SmtpClient(); smtp.Host = "mail.myservername.com"; smtp.Port = 25; smtp.EnableSsl = false; smtp.UseDefaultCredentials = false; smtp.Credentials = new System.Net.NetworkCredential(mfrommail, mSenderCredentials); smtp.Send(mail); return script; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)