您的位置:首页 > 编程语言 > Java开发

SpringEmail 使用 163 邮箱发送邮件报错 MailAuthenticationException: Authentication failed

2018-02-27 16:07 645 查看
Exception in thread “main” org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Error: authentication failed

报错的原因是,设置用户密码应该为 网易邮箱生成的 授权码,而不是邮箱账号对应的密码!

将用户密码修改为 授权码即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐