2011-10-27 109 views
1

当我尝试发送一封电子邮件,我收到以下错误:无法从传输连接读取数据:net_io_connectionclosed。

Unable to read data from the transport connection: net_io_connectionclosed. 

的电子邮件时,我在我的本地机器上运行它,但只要我把它上传到IIS它停止工作发送。

下面是我的web.config文件我的邮件设置:

<system.net> 
    <mailSettings> 
     <smtp from=""> 
     <network host="MyEmailServer" port="25" userName="" password=""/> 
     </smtp> 
    </mailSettings> 
    </system.net> 

它也似乎我的服务器上,但只是有时工作。

任何帮助,将不胜感激,谢谢。

回答

1

我发现了一个修补程序,如果有人在将来看到这个问题,可能会有帮助。而不是:<network host="MyEmailServer" port="25" userName="" password=""/>我做了:<network host="192.168.0.1" port="25" userName="" password=""/>其中192.168.0.1是服务器的IP地址。希望它有帮助

相关问题