Reputation: 147
I have tried setting SMTP configuration for my webmail. I have used following settings for configuration
Username: [email protected]
Password: Use the email account’s password.
Incoming Server: a2plcpnl0234.prod.iad2.secureserver.net
IMAP Port: 993
POP3 Port: 995
Outgoing Server: a2plcpnl0234.prod.iad2.secureserver.net
SMTP Port: 465
When I tried with these settings I get time out error/Failure sending mail. Below is the c# code
SmtpClient smtp = new SmtpClient();
smtp.Host = "webmail.mydomain.in";
smtp.UseDefaultCredentials = true;
smtp.EnableSsl = true;
System.Net.NetworkCredential credentials = new System.Net.NetworkCredential();
credentials.UserName = "[email protected]";
credentials.Password = "mypasword";
smtp.Credentials = credentials;
smtp.Port = 465;
Upvotes: 1
Views: 12558
Reputation: 432
If time out is the issue then add
SmtpClient smtp = new SmtpClient();
smtp.Timeout = 1200000;
mostly it will fix the issue
Updated as per the comment
Upvotes: 0