Back

how to send emails from my appwrite instance which is running on a digital ocean droplet??

  • 0
  • Users
  • Flutter
  • Accounts
Ansh
17 May, 2023, 20:58

how to setup email sending in appwrite instance if it is hosted on digital ocean droplet

TL;DR
To send emails from your Appwrite instance hosted on a Digital Ocean droplet, you need to follow these steps: 1. Update the SMTP values in the `.env` file located at `/root/appwrite/.env`. 2. After updating the values, run the following command in the Appwrite folder: `docker-compose up -d`. 3. Make sure to set up the SMTP options correctly by referring to the documentation at https://appwrite.io/docs/email-delivery. 4. It's important to note that Appwrite's SMTP and email settings are only used internally and cannot be used for email templates or system emails like magic-link or
Binyamin
17 May, 2023, 20:59

If you're referring to Appwrite emails as magic-link, password reset, etc. then there is no way to control them. (without changing Appwrite the code manually)

Binyamin
17 May, 2023, 21:00

And there is no way to use Appwrite (for now) email templates and system, so you'll have to send them manually.

Binyamin
17 May, 2023, 21:00

What I mean is that all Appwrite SMTP and email settings are to be used only by your Appwrite but only internally

Drake
17 May, 2023, 21:18

Ya... clarification would be helpful

Binyamin
17 May, 2023, 21:18

Ohh my bad

Ansh
17 May, 2023, 21:19

I mean i have a appwrite instance running on digital ocean

Drake
17 May, 2023, 21:19

Huh? My comment was to the original poster (OP)

Ansh
17 May, 2023, 21:19

And i need to set up smtp for it

Drake
17 May, 2023, 21:19

No what kind of email are you trying to send

Ansh
17 May, 2023, 21:19

So that i could have email verification of the user account

Binyamin
17 May, 2023, 21:20

Yes, but you make me realize I wasn't responding to the correct issue

Binyamin
17 May, 2023, 21:20

You'll need to set SMTP option in your .env file In digitalocean this file should be in /root/appwrite/.env

Binyamin
17 May, 2023, 21:20

You can see the specific here https://appwrite.io/docs/email-delivery

Binyamin
17 May, 2023, 21:22

After updating the SMTP values be sure run

TypeScript
  docker compose up -d

In the Appwrite folder

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