DougHennig / SFMail

A library to send emails from VFP applications
15 stars 1 forks source link

Error OLE IDispatch exception code 0 from MailKit: 535: Incorrect authentication data.." #7

Closed flexsoluciones closed 8 months ago

flexsoluciones commented 9 months ago

error OLE IDispatch exception code 0 from MailKit: 535: Incorrect authentication data..", run in form vfp

port user and password correct ?

in main prg

SET PROCEDURE TO sfmail.prg

DougHennig commented 9 months ago

You have to make sure all of the settings are correct: cServer, cUser, cPassword, nSecurityOptions, etc.

flexsoluciones commented 9 months ago

yes ,It may be that attachments don't exist in some cases

DougHennig commented 9 months ago

The error message sounds more like the settings are not correct.

flexsoluciones commented 9 months ago

try IF !EMPTY(fileridesri) AND !EMPTY(filerespsri) .cAttachments = &fileridesri + ',' + &filerespsri ENDIF

DougHennig commented 9 months ago

The error message is "Incorrect authentication data". It does not say anything about attachments. Can you send an email without an attachment or does that fail too?

DougHennig commented 8 months ago

Closing this for lack of response. Feel free to reopen it if necessary.