com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender

眉间皱痕 提交于 2019-12-05 05:53:07

Your server isn't going to let you do this. If it did, you could send spam as anyone. If this is your private server, you might be able to reconfigure it to allow this.

In msg.setFrom(new InternetAddress(from)); "from" should be a valid email setup in the SMTP server. You may need to contact your SMTP server admin and get the User ID setup for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!