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

采取spring发送邮件报错验证通不过去

2012-12-27 
采用spring发送邮件报错验证通不过去是这样的我有一个账户密码为空,我用javamaiL用这个账户发送邮件可以,

采用spring发送邮件报错验证通不过去
是这样的我有一个账户密码为空,我用javamaiL用这个账户发送邮件可以,但是用spring发送邮件就是报错,我试过用我们公司的邮箱发送邮件是可以的不知道为何用那个账户却发不出去,一下是错误信息
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:392)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:355)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)
....
Caused by: javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:590)
        at javax.mail.Service.connect(Service.java:271)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:389)
        ... 139 more

热点排行