【发布时间】:2017-10-02 03:57:33
【问题描述】:
我已尝试为我的网络邮件设置 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;
【问题讨论】:
标签: c# smtpclient webmail