0

我正在从我们的应用程序发送邮件。使用的属性如下,

"mail.smtp.auth", "true"
"mail.smtp.host", smtp.bizmail.yahoo.com
"mail.smtp.port", 587

我们有两台 linux 服务器,我的问题是它从一台服务器发送邮件,但从另一台服务器不发送邮件。它抛出异常如下

javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: smtp.bizmail.yahoo.com, port: 587;
  nested exception is:
        java.net.ConnectException: Connection timed out
        at javax.mail.Transport.send0(Transport.java:219)
        at javax.mail.Transport.send(Transport.java:81)
4

0 回答 0