I have one web application which hosted on Godaddy server. I am stuck with Failure sending mail error. I place my code here
public void Mailing()
{
MailMess
EnableSsl should be true.
If you need a timeout then its property should be set before the email is sent try adjusting like this
SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "relay-hosting.secureserver.net";
smtpClient.Port = 465;
smtpClient.EnableSsl = true;
smtpClient.UseDefaultCredentials = false;
smtpClient.Credentials =
new NetworkCredential("mailadress@server.net", "Password");
...
smtpClient.Timeout = 10000;
smtpClient.Send(message);