spring boot发邮件报错smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
1、错误信息553 Mail from must equal authorized usercom.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized userat com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTran...
·
1、错误信息
553 Mail from must equal authorized user
com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1333)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)
at com.you.mail.model.SendMessage.sendMessage(SendMessage.java:71)
at com.you.mail.model.SendMessage.main(SendMessage.java:89)
Exception in thread "main" com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1333)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)
at com.you.mail.model.SendMessage.sendMessage(SendMessage.java:71)
at com.you.mail.model.SendMessage.main(SendMessage.java:89)
由于邮件发送时,登录用户和发信人必须一致;保证登录人邮箱跟发信人邮箱一致,要么都用163邮箱,要么都用QQ邮箱。
更多推荐
已为社区贡献1条内容
所有评论(0)