首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

connection failed; nested exception is javax.mail.MessagingException:

2011-11-09 
用spring邮件发送有时候好用,有时候出现下面错误。为什么?DEBUG: getProvider() returning javax.mail.Prov

用spring邮件发送有时候好用,有时候出现下面错误。为什么?
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.126.com", port 25, isSSL false
DEBUG SMTP: exception reading response: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response;

[解决办法]
友情帮顶!!

热点排行