string vbody = "Thank you for your valueble feedback. Soon we will reach to you! <br />"; vbody = vbody + "With Regards <br />"; vbody = vbody + "Support Team -"; vbody = vbody + "BOOK MOVIE TICKET"; MailMessage msg = new MailMessage(); msg.To.Add(txt_email.Text); msg.From = new MailAddress("bookmovieticket4u@gmail.com", "Book Movie Ticket Help Desk"); msg.IsBodyHtml = true; msg.Body = vbody; msg.Subject = "Thank you for your feedback"; SmtpClient smtp = new SmtpClient("smtp.gmail.com"); smtp.EnableSsl = true; smtp.Port = 587; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.Credentials = new NetworkCredential("bookmovieticket4u@gmail.com", "password"); smtp.Send(msg);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)