West Wind Internet and Client Tools
Error: authentication required
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?
Most likely invalid uid/pwd or incorrect format of those?
+++ Rick ---