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