阿里ECS发邮件报Couldn't connect to host, port: smtp.163.com, 25
问题描述Web项目使用apache的commons-email发送邮件,本地运行正常,部署到aliyun服务器后无法发送邮件。原因查看日志发现报错,内容如下:org.apache.commons.mail.EmailException:Sendingtheemailtothefollowingserverfailed:smtp.163.com:25atorg.apache.commons.mail