System.Net.Mail.SmtpException: The operation has timed out. error in asp.net send mail code using godaddy hosting
I am using following peace of code to send mail using godaddy hosting . but its throw System.Net.Mail.SmtpException: The operation has timed out. protected void sendmail() { var fromAddress = "frommailid@site.com"; // any address where the email will be sending var toAddress = "to@gmail.com"; //Password of your gmail address const string fromPassword = "mypassword"; // Passing the values and make a email formate to display string subject = "HI test mail "; string body = "From: pro@e-hotelspro.com"; // smtp settings var smtp = new System.Net.Mail.SmtpClient(); { //smtp.Host = "relay-hosting