java smtp 邮箱向外部发送邮件 550 5.7.1 Unable to relay
2017-10-10 11:17
609 查看
问题描述:
公司邮箱发送到内部邮箱没问题,在Foxmail上发送到外部邮箱如136,qq也没问题。但是使用java代码发送到外部邮箱有问题,网上找了很多都是些没用的,后来和一个同事一起研究找到了解决办法。在这里感谢他
异常信息:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
解决方法:
commons-email改为高版本
改为
公司邮箱发送到内部邮箱没问题,在Foxmail上发送到外部邮箱如136,qq也没问题。但是使用java代码发送到外部邮箱有问题,网上找了很多都是些没用的,后来和一个同事一起研究找到了解决办法。在这里感谢他
异常信息:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
解决方法:
commons-email改为高版本
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> <version>1.2.2</version> </dependency>
改为
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> <version>1.4</version> </dependency>
相关文章推荐
- SMTP Error:550 5.7.1 Unable to relay for
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com”的研究
- Ubuntu 使用 heirloom-mail 调用外部邮箱 SMTP 服务器发送邮件
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com”的研究
- 发送邮件时Unable to relay错误的解决方法 转
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com”的研究
- 解决lumisoft mail server使用中的错误“550 5.7.1 Unable to relay for xxx”
- 【Vegas原创】Exchange报550 5.7.1 Unable to relay for …错误的分析
- Ubuntu下使用SMTP服务器发送邮件到外部邮箱
- yii2使用邮箱组件发送邮件信息 Sorry, we are unable to reset password for email provided
- exchange2010配置pop邮箱发送邮件出现报错550 5.7.1
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com” 的研究
- 邮件发送以及javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp解决方案
- 【Vegas原创】Exchange报550 5.7.1 Unable to relay for …错误的分析
- 退信之"550 5.7.1 Unable to relay for *@*.com" 推荐
- Exchange 550 5.7.1 Unable to relay 错误
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com”的研究
- 发送邮件时Unable to relay错误的解决方法
- Exchange用Foxmail设置POP3发邮件提示550 5.7.1 Unable to relay解决方法
- SMTP典型错误:“550 5.7.1 Uable to relay user@domain.com” 的研究