Back

Sendgrid password recovery email not sending

  • 0
  • Self Hosted
  • Messaging
  • Web
Osman
22 Oct, 2024, 12:42

Hello, Im using SendGrid as email provider. I added it as a messaging provider in the appwrite console, and it works fine. However, when i call account.createRecovery() on the client, the call succeeds, but no email is ever sent. My .env vars looks like this:

TypeScript
_APP_SMTP_HOST=smtp.sendgrid.net
_APP_SMTP_PORT=587
_APP_SMTP_SECURE=tls
_APP_SMTP_USERNAME=email@example.com
_APP_SMTP_PASSWORD=Password
_APP_SYSTEM_EMAIL_ADDRESS=email@example2.com

Appwrite 1.5.7 and self-hosted. Thanks in advance

TL;DR
Issue with Sendgrid password recovery email not sending. Developer wonders if they need to set both SMTP vars in .env and in the appwrite console, or if it can be controlled only through the console. Version 1.5.7 self-hosted. Solution: Ensure correct SMTP settings are configured in both .env file and appwrite console for SendGrid to send password recovery emails successfully.
Osman
22 Oct, 2024, 12:47

I think i found the problem. Does one have to set both the SMTP vars in .env, as well as the similar SMTP settings in the appwrite console? Or can i simply control it through the console.

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