Back

Self Hosted SMTP Authentication Error

  • 0
  • Self Hosted
Stargate
20 Jan, 2025, 08:26

Appwrite documentation has the following variables filled out if using an apikey _APP_SMTP_HOST=smtp.sendgrid.net _APP_SMTP_PORT=587 _APP_SMTP_SECURE=tls _APP_SMTP_USERNAME=apikey _APP_SMTP_PASSWORD=<apikey> _APP_SYSTEM_EMAIL_ADDRESS=<email address>

I have setup sendgrid, and filled the environment variables above. The server will send emails when a new user is created and the app calls createVerification, but when I try to add another user to the organization no email is received.

Appwrite doctor says it is disconnected and docker logs show an authentication error when sending the invite to join the organization. I found another post running a bash script to test the smpt service but that didn't have an output.

Thanks in advanced for any input 🙂

TL;DR
SMTP authentication error when trying to send emails using Sendgrid with Appwrite API. Emails sent successfully when creating a new user but not when adding a user to an organization. Appwrite doctor indicates disconnection and logs show authentication error. Try changing port to 465 and ensure correct environment variables are set.
Darshan Pandya
20 Jan, 2025, 08:54

can you try with port 465, does it help?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more