Hi, I am getting the following error??? Please help??? ERROR: Server Error in '/Online_Book_Shopping' Application. ________________________________________ The remote name could not be resolved: 'smtp.gmail.com' Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com' Source Error: Line 60: smt.Port = 587; Line 61: smt.EnableSsl= true; Line 62: smt.Send(msg);//Error comes in this line of code Line 63: lblmsg.Text = "Username and Password Sent Successfully"; Line 64: lblmsg.ForeColor = System.Drawing.Color.ForestGreen; Source File: e:\Vijaya\Online_Book_Shopping\ForgetPassword.aspx.cs Line: 62 ============================================================================================= Following is the code:- using System.Net; using System.Net.Mail; using System.Drawing; using System.Configuration; using System.Data.SqlClient; using System.Data; public partial class ForgetPassword : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string username = ""; string password = ""; string constr = ConfigurationManager.ConnectionStrings["CS"].ConnectionString; SqlConnection con = new SqlConnection(constr); { SqlCommand cmd = new SqlCommand("select Name, Password from dbo.RegisteredUsers where Email=@email", con); cmd.Parameters.AddWithValue("Email", txtemail.Text); con.Open(); using (SqlDataReader dr = cmd.ExecuteReader()) { if (dr.Read()) { username = dr["Name"].ToString(); password = dr["Password"].ToString(); } } con.Close(); if (!string.IsNullOrEmpty(username)) { MailMessage msg = new MailMessage(); msg.From = new MailAddress("nilusilu3@gmail.com"); msg.To.Add(txtemail.Text); msg.Subject = " Recover your Password"; msg.Body = ("Your Username is:" + username + "
" + "Your Pas