org.springframework.mail.MailAuthenticationException: Authentication failed;解决方法
org.springframework.mail.MailAuthenticationException: Authentication failed;解决方法
- org.springframework.mail.MailAuthenticationException: Authentication failed;解决方法
java程序发送邮件时,用户认证失败导致如下错误: org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 5.7.8 authentication failed 1,检查自己邮箱是否开通pop3/smtp服务。 2、程序中所填的邮箱密码是否为开通pop3/smtp服务时所给的授权码。
OK!!!