Back

How to customize the email templates on self hosted instance?

  • 0
  • Web
elnur
24 Oct, 2023, 21:28

As title, how can I change the templates? I have set the .env SMTP and email variables. However, if I try to go to templates in the dashboard it prompts me to enable the custom smtp server which I already have in the environment variables in docker? To clarify this is not cloud hosted. Is this possible?

TL;DR
The user wants to know how to customize the email templates on a self-hosted instance. They have already set the SMTP variables in the .env file, but when they go to the dashboard to change the templates, it prompts them to enable the custom SMTP server again. They want to know if it is possible to change the templates without enabling the custom SMTP server. There is no solution provided in the support thread.
Drake
24 Oct, 2023, 21:53

yes, set the custom smtp settings

elnur
24 Oct, 2023, 22:03

Along with them already being set inside the .env file?

elnur
24 Oct, 2023, 22:05

I tried to set the custom smtp settings on their own without changing anything inside the .env file but this didn’t work.

elnur
24 Oct, 2023, 22:06

After changing the .env file with all variables from the guide it works but now I’m unsure how to go about the templates.

elnur
24 Oct, 2023, 22:07

Currently the setup is:

SMTP variables set with correct values inside .env file in self hosted instance

No custom smtp settings set in dashboard

Drake
24 Oct, 2023, 22:09

now set the custom smtp settings

elnur
24 Oct, 2023, 22:11

Will do! The same as in the .env file?

Drake
24 Oct, 2023, 22:12

you can if you want

Drake
24 Oct, 2023, 22:13

think of the one in your .env file as the settings for your appwrite instance (ie. doing recover password for your console user) or a fallback for your projects. then the project one is project specific smtp settings

elnur
24 Oct, 2023, 22:39

Thank you for the explanation! So it’s intended that the project smtp to not work without the instance smtp config ?

Drake
24 Oct, 2023, 22:49

Sort of yes. You can submit a feature request suggesting otherwise though

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