Skip to content

Instantly share code, notes, and snippets.

@eldadfux
Last active November 26, 2022 11:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eldadfux/cbc4c0664d08b36dfe90f83748b242d9 to your computer and use it in GitHub Desktop.
Save eldadfux/cbc4c0664d08b36dfe90f83748b242d9 to your computer and use it in GitHub Desktop.
Appwrite with Sendgrid

Appwrite + Sendgrid SMTP Server

Simple steps to set Sendgrid as your Appwrite SMTP server

  1. Update your Appwrite Env vars with settings from your Sendgrid account
- _APP_SYSTEM_EMAIL_NAME=Project%20Team
- _APP_SYSTEM_EMAIL_ADDRESS=team@project.com
- _APP_SMTP_HOST=smtp.sendgrid.net
- _APP_SMTP_PORT=465
- _APP_SMTP_SECURE=ssl
- _APP_SMTP_USERNAME=apikey
- _APP_SMTP_PASSWORD=my-api-key-from-sendgrid
  1. Use a secure port (465+ssl or 587+tls)
  2. Make sure to validate team@project.com in the Sendgrid dashboard: https://sendgrid.com/docs/for-developers/sending-email/sender-identity/
  3. Use your _APP_SYSTEM_EMAIL_NAME and _APP_SYSTEM_EMAIL_ADDRESS in the Sendgrid dashboard
  4. Make sure your Sendgrid API key had required 'Mail' permission
  5. Reload your Appwrite setup with docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment