Unable to modify Magic URL email content. Changes to translation files (en.json) and email templates (email-magic-url.tpl) are not reflected in sent emails. Here are the steps i did (very simple scenario):
- Modified Translation File (created and new one under appwrite/custom-translations directory): File: en.json Change: Updated "emails.magicSession.hello": "Hello from vim {{user}}," Verified: SSH'd into container and confirmed the change was there
- Volume Mounting (Production Server)
appwrite:
volumes:
- ./custom-translations:/usr/src/code/app/config/locale/translations:ro
- Restarted Services docker restart appwrite docker restart appwrite-worker-mails
and the email is being sent from my custom SMTP on production and still no changes.
Also when i do "docker exec -it appwrite" and navigation to the en.json file, i can find my updates already there!!
solved and blogged about it: https://wellrounded.engineer/how-to-customize-appwrite-email-templates-in-production/
Recommended threads
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...