Posted on: 10/3/2013 2:41:46 PM | Views : 639

<system.net> <mailSettings> <smtp> <network host="smtp.gmail.com" userName="mailmsj2013@gmail.com" password="xxx" enableSsl="true" port="587"/> </smtp> </mailSettings> </system.net> This is the web.config file where this file is used to configure the gmail.

protected void ContactUs_Submit(object sender, EventArgs e) { MailMessage mailMessage = new MailMessage(); mailMessage.From = new MailAddress("gahhon@hotmail.com", txtName.Text); mailMessage.To.Add(new MailAddress("mailmsj2013@gmail.com")); mailMessage.Subject = "Feedback/FAQ - " + txtName.Text; mailMessage.IsBodyHtml = true; mailMessage.Body = txtMessage.Text + "<br/><br/> Best Regards, <br/>" + txtName.Text; SmtpClient sm ...

Go to the complete details ...