简体   繁体   English

无法连接到SMTP服务器

[英]Unable to connect to SMTP server

I am trying to connect to the SMTP server from my java application. 我正在尝试从Java应用程序连接到SMTP服务器。 Getting the below error 得到以下错误

 Could not connect to SMTP host: w.x.y.z , port: 25, response: -1

This is on a windows machine. 这是在Windows机器上。 When i telnet to the same, it is successful. 当我远程登录到同一台计算机时,它成功。

I tried to send the mail from another linux machine in the same network, it was sent successful. 我试图从同一网络中的另一台linux机器发送邮件,发送成功。

Could some one guide me if i need to do any changes on the windows machine to get it working? 如果我需要在Windows机器上进行任何更改以使其正常工作,是否可以有人指导我?

I am trying the application on Windows 8.1. 我正在Windows 8.1上尝试该应用程序。

I got the issue resolved. 我解决了问题。 I needed to ask my network team to allow my machine IP to connect to the SMTP server. 我需要请网络团队允许我的机器IP连接到SMTP服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM