1.原因
java程序发送邮件时,用户认证失败导致如下错误:
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Error: xxxxxxx: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256
2.解决方法
1,检查自己邮箱是否开通pop3/smtp服务。 2、程序中所填的邮箱密码是否为开通pop3/smtp服务时所给的授权码。