我已尝试为我的网络邮件设置SMTP配置。我使用了以下设置进行配置
Username: xyz@mydomain.in
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当我尝试使用这些设置时,我收到超时错误/发送邮件失败。下面是c#代码
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 = "xyz@mydomain.in";
credentials.Password = "mypasword";
smtp.Credentials = credentials;
smtp.Port = 465;发布于 2017-05-04 14:19:18
如果超时是问题所在,则添加
SmtpClient smtp = new SmtpClient();
smtp.Timeout = 1200000;大多数情况下,它会解决问题
根据评论更新
https://stackoverflow.com/questions/43774950
复制相似问题