Back

Sending E-Mail via Gmail SMTP server doesn't work

  • 0
  • Self Hosted
  • Messaging
Tobi696
21 Sep, 2024, 17:11

Self hosted appwrite here, I previously sent emails using golang scripts over Gmails smtp servers.

I have this configuration im my .env File:

TypeScript
_APP_SMTP_HOST=smtp.gmail.com
_APP_SMTP_PORT=587
_APP_SMTP_SECURE=
_APP_SMTP_USERNAME=email@gmail.com
_APP_SMTP_PASSWORD="APP PASSWORD CONTAINING SPACES"

For some reason, sending the e-mails doesn't work.

TL;DR
Developers using a self-hosted appwrite had issues sending emails via Gmail SMTP server. The problem was resolved by setting `_APP_SMTP_SECURE=tls` in the `.env` file.
Tobi696
21 Sep, 2024, 17:13

RESOLVED: set _APP_SMTP_SECURE=tls

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