2011-10-27 107 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地址。希望它有幫助

相關問題