Java使用hotmail的SMTP服务器转发邮件出错

    xiaoxiao2021-12-14  16

    最近使用hotmail的SMTP在服务器上转发邮件,后台获得如下错误:

    javax.mail.AuthenticationFailedException: 535 5.0.0 Authentication Failed at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:196)

    并且在hotmail邮箱收到一份微软的邮箱登录异常邮件:

    Verify your account We detected something unusual about a recent sign-in for the Microsoft account ep*****@hotmail.com. For example, you might be signing in from a new location, device, or app. To help keep you safe, we've blocked access to your inbox, contacts list, and calendar for that sign-in. Please review your recent activity and we'll help you take corrective action. To regain access, you'll need to confirm that the recent activity was yours. Review recent activity Thanks, The Microsoft account team

    解决方法是登录服务器,并访问hotmail邮箱,点击上述邮件中的"Review recent activity"按钮,获得并输入验证码即可。

    转载请注明原文地址: https://ju.6miu.com/read-971463.html

    最新回复(0)