Internet Mail Client Control FAQs/Miscellaneous/Gmail and SSL
I'm getting runtime error 80040204H (An SMTP or winsock error occured) when using the SMTPClient object with the Gmail SSL SMTPServer
ID: S23E43 DATE:
The Gmail SSL SMTP server breaks RFC 2821 Sect. 3.9 by not sending a positive response code after the SMTPClient sends a QUIT command. The library behaves as it should in this circumstance according to the standard. In the specific case where you see this error when calling .Close on a Gmail SSL SMTP server your application should catch and ignore the error.