| Author: Deepthi 05 May 2008 | Member Level: Silver Points : 2 |
MailMessage mail = new MailMessage(); SmtpClient smtp = new SmtpClient(); mail.From = new MailAddress(""); mail.To.Add(""); mail.Subject = "Test"; mail.Body = "Hello this test mail"; smtp.Host = "mail.vassure.com"; //smtp.Host = "smtp.gmail.com"; smtp.Port = 2525; smtp.EnableSsl = true; smtp.Credentials = new System.Net.NetworkCredential("ur id", "pswd"); smtp.Send(mail); Add name space using system.net.mail
|