West Wind Internet and Client Tools
SMTP server requires a secure connection
Gravatar is a globally recognized avatar based on your email address. SMTP server requires a secure connection
  Jill Lindgren
  All
  Sep 21, 2017 @ 08:05am

Hi.

I have successfully used the West Wind Client tools in several places but I hit a road block on a new, different system today.

When I run the loSmtp.SendMail() function it returns:

"The SMTP server requires a secure connection of the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. j19sm1155301qtc.4 - gsmtp"

Please advise how to get around this error.

Thank you.

Jill Lindgren

Gravatar is a globally recognized avatar based on your email address. re: SMTP server requires a secure connection
  Mike McDonald
  Jill Lindgren
  Sep 21, 2017 @ 09:51am

Jill -

Make sure you are setting the .nMailMode property to 0 so it uses the .NET mode, which is requires for SSL/TLS.

wwSMTP::nMailMode

-- Mike McDonald
Software Design of Kentucky

Gravatar is a globally recognized avatar based on your email address. re: SMTP server requires a secure connection
  Rick Strahl
  Jill Lindgren
  Sep 21, 2017 @ 01:21pm

Jill,

Mike's pointed you in the right direction - you need to use .NET mode to use SSL. Here's some more info from the documentation:

+++ Rick ---

© 1996-2024