West Wind Internet and Client Tools
Error: authentication required
Gravatar is a globally recognized avatar based on your email address. Error: authentication required
  Jill Lindgren
  All
  Jan 12, 2021 @ 11:17am

I am trying to set up an email sending app. The user has sendinblue as their smtp provider.

I have put these parameters in the method before I send the email:

LOCAL loSMTP as wwSmtp
loSmtp=CREATEOBJECT("wwSmtp")
loSmtp.cMailServer = "smtp-relay.sendinblue.com:587"
loSmtp.nMailMode = 0
loSmtp.lUseSsl = .T.
loSmtp.nTimeout = 100
loSmtp.cUsername = ALLTRIM(thisform.txtuser.Value)
loSmtp.cPassword = ALLTRIM(thisform.txtpw.Value)

Upon trying to send the email with:

llResult = loSmtp.SendMail() 

As a result, I get: "the SMTP server requires a secure connection or the client was not authenticated. the server response was: Error: authentication Required."

I then went into the wwwsmtp code, because I'm already at a loss, and changed:

*** The port on which to send email

nServerPort = 587 && was 25

*** Determines if SSL/TLS should be used for this mail request

lUseSsl = .T.	&& change to .T. 011221

Which gives me the same error message.

What do I need to look at/change next please?

Gravatar is a globally recognized avatar based on your email address. re: Error: authentication required
  Rick Strahl
  Jill Lindgren
  Jan 12, 2021 @ 01:16pm

Most likely invalid uid/pwd or incorrect format of those?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error: authentication required
  Jill Lindgren
  Rick Strahl
  Jan 12, 2021 @ 02:32pm

I will check. Thank you!

© 1996-2024