【Linux】【Jenkins】邮件发送失败的问题javax.mail.MessagingException: Could not connect to SMTP host:

javax.mail.MessagingException: Could not connect to SMTP host: smtp.126.com,port:25

解决方案:

之前用的是126邮箱,然后修改为qq邮箱后还是报错。

网搜查看了下,目前都是代码级别的解决方案,继续调查中。。

该问题很奇怪,在windows下配置的没问题,在linux下配置的就有问题,我也有点搞不懂。

http://service.exmail.qq.com/cgi-bin/help?id=28&no=1000585&subtype=1

原文地址:https://www.cnblogs.com/conquerorren/p/9083344.html