I Have followd the step of sening email through smtp.
i coded like below
protected void btnSubmit_Click(object sender, EventArgs e)
NetworkCredential cred = new NetworkCredential("email@example.com", "xxxxxxx");
MailMessage Msg = new MailMessage();
Msg.From = new MailAddress("firstname.lastname@example.org");
Msg.Subject = "Enquiry for Interior Design";
string sMessage = "Dear Admin, <br /><br />"
+ "Another user seeking for interior design through www.jjinterirorsdelhi.com<br /><br />";
sMessage += "<u>Following are the User details :</u><br /><br /> Name: " + txtName.Text
+ "<br />Email: " + txtEmail.Text
+ "<br />Phone: " + txtPhone.Text
+ "<br />Message: " + txtMsg.Text;
Msg.Body = sMessage;
SmtpClient client = new SmtpClient("smtp.live.com", 995);
client.Credentials = cred;
client.EnableSsl = true;
lblSendMsg.Visible = true;
lblSendMsg.Text = "Your Enquiry has been sent sucessfully. Thank you";
Then it throw error like below--
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 188.8.131.52:995
how can i Solve it.