Web Developer
My env vars are configure properly still it gives me error which says could not authenticate
Votes
0
Replies
7
Participants
3
Messages
8
Web Developer
My env vars are configure properly still it gives me error which says could not authenticate
Are the SMTP connection settings correct? Can happen if you're not using the right port
Rank 1: Thread
i am using port 587 , with tls in secure section
can you check without tls?
Rank 1: Thread
i checked but it didn't work
Rank 1: Thread
I, self hosted this on my docker , is it essential to set first in provider then it will work ?
I get the samer error. Were you able to figure this out?
I confirm my SMTP credentials by sending an email with swaks from inside the appwrite-worker-mails container. And the email goes through successfully.
But when my app's frontend tries to reset a password I get the authentication error.
~/appwrite$ sudo docker compose logs -t appwrite-worker-mails appwrite-worker-mails | Received Job. appwrite-worker-mails | failed to run. appwrite-worker-mails | Error sending mail: SMTP Error: Could not authenticate. appwrite-worker-mails | Using deprecated logging configuration. Please update your configuration to use DSN format.Unable to parse DSN: scheme is required appwrite-worker-mails | [Error] Type: Exception appwrite-worker-mails | [Error] Message: Error sending mail: SMTP Error: Could not authenticate. appwrite-worker-mails | File: /usr/src/code/src/Appwrite/Platform/Workers/Mails.php appwrite-worker-mails | [Error] Line: 145
Email settings in my Appwrite console (Settings -> Custom SMTP server) were overding envrioment variables in the docker container and caused my SMTP authentication error. I wrote a post about this.