Using System.net.mail; MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.leadforce.in"); SmtpServer.Host = "50.97.99.170"; mail.From = new MailAddress("rajaservice88@gmail.com"); mail.To.Add(TextBox1.Text); mail.Subject = TextBox2.Text; mail.Body = TextBox3.Text; mail.Priority = MailPriority.High; SmtpServer.Port = 25; SmtpServer.Credentials = new System.Net.NetworkCredential("vertex@leadforce.in", "password"); SmtpServer.EnableSsl = true; SmtpServer.Send(mail); Label1.Text = "send msg";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)