发送电子邮件时出错:由于目标计算机主动拒绝,因此无法建立连接 [英] Error Sending Email: No connection could be made because the target machine actively refused it

查看:292
本文介绍了发送电子邮件时出错:由于目标计算机主动拒绝,因此无法建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个发送邮件程序,邮件服务器是第三方,不是我的本地主机.

现在,当程序在本地运行时,我可以发送邮件,但是当我上载到两个远程主机时,一个正在工作,而另一个接收到以下错误:

Hi guys,

I have a send mail program, and the mail sever is a third partu, not my local host.

Now I can send mail when the program runs locally, but when I upload to the two remote host , one is work, and other receives the error as below:

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it XXX.XX.XX.XXX:25



我试过其他邮件服务器仍然遇到相同的问题.那么,主机问题吗? ...或邮件服务器?



I tried other mail server still ran into the same problem. So, is the host problem? ...or mail server?

Could any one tell me what is happening?

推荐答案

远程服务器主动拒绝连接的事实表明您正在与服务器建立连接. >
在远程计算机上,您确定邮件服务器的IP地址正确吗?

尝试从远程服务器Telnet到SMTP服务器,然后执行常规的SMTP命令集以查看返回的内容.如果这样可以解决问题,那么接下来我将讨论一个身份验证问题,在您上传到的远程服务器上,它可能正在尝试使用错误的凭据对smtp服务器进行身份验证.
The fact that the remote server actively refused the connection suggests that you are making a connection to the server.

On the remote machine, are you sure you have the IP address of the mail server correct?

Try Telnet to the SMTP server from the remote server, and then go through the normal SMTP command set to see what it comes back with. If this works then, I would go with an authentication issue next, on the remote server you uploaded to, it is maybe trying to authenticate with the smtp server using the wrong credentials.


这篇关于发送电子邮件时出错:由于目标计算机主动拒绝,因此无法建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆