SMTPException:无法读取从传输连接数据:net_io_connectionclosed [英] SMTPException : Unable to read data from the transport connection: net_io_connectionclosed

查看:4137
本文介绍了SMTPException:无法读取从传输连接数据:net_io_connectionclosed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,这个问题看起来像许多重复的其他问题,同时它不是。

I know that this question looks like duplicate of dozens other questions while its not.

在以往我尝试通过我的web应用程序我的本地机器上发送邮件的SMTPException被抛出的例外是:

When ever i try to send an email on my local machine through my web application an SMTPException is thrown and the exceptions is :

//on this line : SmtpServer.Send(mail);
Unable to read data from the transport connection: net_io_connectionclosed.

虽然对生产的code为正常使用,在同一code,相同的连接,相同的凭据,我使用的IP,而不是别名,我试图关闭防火墙我的本地机器,并没有帮我解决这个问题。

While the code on production is working perfectly, the same code, the same connections, the same credentials, i'm using IP instead of alias, i tried to turn off the firewall on my local machine, and nothing helped me to fix this issue.

在我的本地机器是用来工作previously,任何人都可以给只是表示这可能是提出这个问题的问题?

While on my local machine is used to work previously, can anyone give just a hint what could be the problem that raising this issue?

推荐答案

如果你是一个住宅互联网连接,往往你的ISP将阻止传出的电子邮件发送通过阻断端口25的所有出站连接。这是很常见的在这里美国。尝试连接到本地邮件服务器通过TCP / IP,或者一个你自己的内部网络上。

If you are on a residential internet connection, quite often your ISP will block outgoing email sends by blocking all outbound connections to port 25. This is quite common here in the US. Try connecting to a local email server over TCP/IP, or to one on your own internal network.

这篇关于SMTPException:无法读取从传输连接数据:net_io_connectionclosed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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