WSAETIMEDOUT is a Windows Socket error.
The error description is:
Quote:
Connection timed out.
A connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host has failed to respond.
Essentially, the mail server you are using to send email isn't responsive enough. If this is happening sometimes, but not all the time, you may want to create a system where you capture information that needs to be emailed (to a database, for example), and have a loop that checks for unsent emails. When the loop finds an unsent message, it tries to send it, marking it as complete when the email step succeed. In this way, you can retry failures of any kind.