#[SOLVED]Sendgrid password recovery email not sending

4 messages · Page 1 of 1 (latest)

pulsar quarry
#

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:

_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

#

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.

stone sand
pulsar quarry
#

Cool thanks, yea it worked after i set the env vars correctly.