email to the following server failed : smtp.163.com:25 邮件发送失败 org.apache.commons.mail

l2qq · 2023-05-16 16:24
字数 786 评论 0 收藏 0 点赞 0

Sending the email to the following server failed : smtp.163.com:25

org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:25

        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)

        at org.apache.commons.mail.Email.send(Email.java:1267)

解决办法:

1、更换jdk14、jdk15都可以,

2、 java代码取消ssl email.setSSL(false);

3、升级commons-email最新版本

原因应该ssl问题,估计跟jdk不兼容


最新评论 0