分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
1、错误描述
553 Mail from must equal authorized usercom.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)
2、错误原因
由于在做邮件发送时,登录用户和发信人必须一致;而在测试时我登录用户的邮箱是163邮箱,发信人邮箱是QQ邮箱,导致报错
3、解决办法
保证登录人邮箱跟发信人邮箱一致,要么都用163邮箱,要么都用QQ邮箱
给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
![这里写图片描述](https://i-blog.csdnimg.cn/blog_migrate/2e19ffb3303a490d20ea5d00dd397156.gif)