MailMessage mail = new MailMessage(); mail.To.Add(txtTo.Text); //mail.To.Add("Another Email ID where you wanna send same email"); mail.From = new MailAddress("test.sathish4303@gmail.com"); mail.Subject = txtSubject.Text; mail.Body = txtBody.Text; mail.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); check_mailid(); smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address smtp.Credentials = new System.Net.NetworkCredential("test.mail03@gmail.com", "xxxyyy"); smtp.EnableSsl = true; smtp.Send(mail);
smtp.Host = "smtp.gmail.com";
smtp
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)