I am trying to set up mail functionality using goDaddy smtp servers,Go daddy support is also not very useful here.
I have tried these servers:
relay-hosting.secureserver.net -Errors-Unable to connect\
smtpout.secureserver.net -Errors-Unable to read data from the transport connection: net_io_connectionclosed
This is what goDaddy says:
This is my code snippet:
MailMessage mail = new MailMessage("[email protected]", to);
SmtpClient client = new SmtpClient();
client.Host = "smtpout.asia.secureserver.net";
//Tried "relay-hosting.secureserver.net" -Errors-Unable to connect
//Tried "smtpout.secureserver.net" -Errors-Unable to read data from the transport connection: net_io_connectionclosed
client.Port = 25;
//Tried 80, 3535, 25, 465 (SSL)
client.UseDefaultCredentials = false;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.EnableSsl = false;
client.ServicePoint.MaxIdleTime = 1;
client.Timeout = 1000;
client.Credentials = new NetworkCredential("[email protected]", "xxx-xxx");
mail.IsBodyHtml = true;
mail.Subject = "xxx-xxx.com Account Activation";
mail.Body = SomeBigHTMLstring;
client.Send(mail);
mail.Dispose();
and this is the error page am getting
Help me out guys.