Exception in thread “main” org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Error: authentication failed
报错的原因是,设置用户密码应该为 网易邮箱生成的 授权码,而不是邮箱账号对应的密码!
将用户密码修改为 授权码即可
本文解决了一个常见的邮件发送问题,即因使用错误的密码而导致的邮件认证失败。正确的做法是使用网易邮箱提供的授权码而非普通密码。
1745

被折叠的 条评论
为什么被折叠?



