无法从传输连接读取数据:net_io_connectionclose。
当我尝试发送电子邮件时,收到以下错误:
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>
它似乎也可以在我的服务器上工作,但只是有时。
任何帮助将不胜感激,谢谢。
When I try to send an email, I receive the following error:
Unable to read data from the transport connection: net_io_connectionclosed.
The email sends when I run it on my local machine but as soon as I upload it to IIS it stops working.
Below is my mail settings in my web.config file:
<system.net>
<mailSettings>
<smtp from="">
<network host="MyEmailServer" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
It also seems to work on my server but only sometimes.
Any help would be appreciated, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个修复程序,如果将来有人看到这个问题,它可能会很有用。而不是:
我做了:
其中 192.168.0.1 是服务器的 IP 地址。希望有帮助I found a fix, could be useful if anyone sees this in the future. Instead of:
<network host="MyEmailServer" port="25" userName="" password=""/>
I did:<network host="192.168.0.1" port="25" userName="" password=""/>
Where 192.168.0.1 is the IP address of the server. Hope it helps