SMTP SocketException(0x2745)错误(ASP.NET)

时间:2014-04-26 19:31:12

标签: asp.net smtp smtpclient

我有一个邮件发送脚本,用于在注册发生时向用户和员工发送确认信息。最近看来我们遇到了邮件发送问题,发送非常间歇性的错误,主要是错误。

我一直在与主持人合作无济于事。例外情况如下:

   [SocketException (0x2745): An established connection was aborted by the software in your host machine]
   System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +6528783
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +130

[IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +296
   System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count) +45
   System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count) +106
   System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) +203
   System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller) +16
   System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response) +54
   System.Net.Mail.DataStopCommand.Send(SmtpConnection conn) +28
   System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args) +8
   System.Net.ClosableStream.Close() +54
   System.Net.Mail.MailWriter.Close() +65
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1433

现在我尝试了不同的经过身份验证的用户,不同的电子邮件内容和常见主题似乎是带有附件的电子邮件或带有HTML正文的电子邮件似乎容易失败。我的观点是,邮件服务器是断开请求的一方。

作为参考,我使用的是带有非常标准代码的asp.net 4.0。

我的主机似乎无法找到甚至解决问题。

0 个答案:

没有答案