Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

November 27, 2007

SocketError: WSAECONNABORTED when Sending Email (SMTP)

This blog post explains the meaning of the following error condition:

...
    email_size: 44154801
    SocketError: WSAECONNABORTED An established connection was aborted by the software in your host machine.
    Error sending on socket
    send_size: 4096
    Failed when sending email body
...


(More information about WSAECONNABORTED)

If you are sending a large email, and the SMTP server disconnects while the body of the email is being transmitted by your application, you may see this error. While the client app is still sending, the Windows OS (WinSock) shuts down the socket connection — thus you see the somewhat misleading error "An established connection was aborted by the software in your host machine.". The "software in your host machine" is WinSock itself. (In some cases it could be caused by anti-virus software.)

The solution is to determine why the SMTP server decided to disconnect prior to receiving the complete email.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.