MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("relay-hosting.secureserver.net"); mail.From = new MailAddress("mail@domain.in"); mail.To.Add("mail@domain.in"); mail.Subject = "Subject"; mail.Body = "Body" ; SmtpServer.Port = 25; SmtpServer.Credentials = new System.Net.NetworkCredential("mail@domain.in", "******"); SmtpServer.Send(mail);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)