West Wind Internet and Client Tools
net_io_connectionclosed
Gravatar is a globally recognized avatar based on your email address. net_io_connectionclosed
  Jill Lindgren
  All
  Dec 14, 2021 @ 08:45am

Using:

loSmtp=CREATEOBJECT("wwSmtp")

When calling:

llResult = loSmtp.SendMail()  

I am intermittently getting an error: Unable to read data from the transport connection. net_io_connectionclosed

I need some guidance as to what the problem might be please.

Jill Lindgren

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Rick Strahl
  Jill Lindgren
  Dec 14, 2021 @ 11:56am

Firewall may be an issue or Anti-Virus interfering with your connection. AV more likely if it's intermittent. Make sure that there are no blocks on your SMTP port - start with adding the application or the port to the allowed list in Windows Firewall.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Michael
  Jill Lindgren
  Dec 20, 2021 @ 10:11am

What version of West Wind Client Tools are you using? I've been getting this error since early October when using SSL and smtp.office365.com. In the last couple of weeks it has been nearly 50% of emails. Upgraded to v7.23 today and, fingers crossed, all looking good so far.

Michael

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Jill Lindgren
  Michael
  Dec 20, 2021 @ 10:17am

Thank you Michael. I will look into upgrading my tools. I think we are using 6.0.

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Rick Strahl
  Michael
  Dec 20, 2021 @ 10:56am

I don't think anything has changed in recent versions of wwSmtp, unless you were using a fairly old version. Sometime around the late sixes the code was changed to explicitly enable TLS 1.2 in the .NET library which would default that protocol but that was a some time ago now...

I think if you're getting intermittent failures the failures have to do with the service, not the library. It either works or it doesn't unless Office 365 uses different servers with different server software on it.

Quotas perhaps?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Michael
  Rick Strahl
  Dec 21, 2021 @ 06:56am

I've upgraded from v5.51. The upgrade is definely the reason I've stopped getting net_io_connectionclosed errors.

Michael

Gravatar is a globally recognized avatar based on your email address. re: net_io_connectionclosed
  Rick Strahl
  Michael
  Dec 21, 2021 @ 11:38pm

Yeah that makes sense - those versions probably did not have the TLS 1.2 settings auto-enabled.

+++ Rick ---

© 1996-2022