采用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

你可能感兴趣的:(spring)