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

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

- 原文：https://www.l2qq.com/article/182
- 发布：2023-05-16T08:24:36Z
- 作者：l2qq

---

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不兼容
