我经常使用免费的gmail.com邮箱,因为它容量较大,但我们在使用.net编程实现邮件发送时,常会出现我们意想不到的错误。最常见的就是:
(1)The operation has timed out.
(2)出现类似提示:
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first ...."
出现此类错误的主要原因是:
(1)POP的设置不对;
(2)SmtpClient的UseDefaultCredentials,Credentials,EnableSsl设置不正确所引起。
Link URL: http://blog.youkuaiyun.com/johnsuna/archive/2008/04/05/2253777.aspx
(1)The operation has timed out.
(2)出现类似提示:
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first ...."
出现此类错误的主要原因是:
(1)POP的设置不对;
(2)SmtpClient的UseDefaultCredentials,Credentials,EnableSsl设置不正确所引起。
Link URL: http://blog.youkuaiyun.com/johnsuna/archive/2008/04/05/2253777.aspx
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14601556/viewspace-528491/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14601556/viewspace-528491/