Browsing the support, i ve read that it was possible to modify the default html templates for emails. I d like to add my company branding to it and hide the links behind buttons. Unfortunately the way proposed no longer works as the appwrite-worker-email service no longer have the volume sub section in the docker-compose.yml file. I have also tried replacing the file directly in the running container and restarting it but although the file is updated successfully, the emails i receive still contains the same defaults. Please help out if you know how can this be done with the current appwrite version
You shouldn't be mounting into the mails worker. It should be in appwrite container
@Steven yeah I don't know if I misinterpreted what was said in the other thread but when I searched the docker-compose file to mount the file under the volumes I couldn't. I'll check the appwrite container and see if I can modify its volumes
I was wondering the same thing - I wanted to update the email templates by adding my logo and using CTA buttons instead of just plain links.
You can add volumes
under your appwrite service. I'd actually recommend using a docker-compose.override.yml file instead of modifying the one provided by Appwrite
@kathelia.dokgu stay for the ride maybe we ll get to the bottom of this and won't have to wait for appwrite 1.4 at all @Steven ok I'll do that and revert hopefully i get it right
I hope someone will give a clear guide to this matter 😴
Good day all, ill revert back today with my findings
@Steven it seems that it is not currently possible to do without cloning the repo
why?
@Steven i fail at pointing appwrite to the right location i guess. Sorry for the late reply i was traveling. Where exactly should i point the email-base.tpl inside the appwrite container ?
@Steven @hamed @kathelia.dokgu ive managed to get it working. As Steven said it is indeed the appwrite container which needs to be modified by replacing the default email-base.tpl file. Find below the screenshot of how i did it in my docker-compose.yml file.
[SOLVED]Modify default email templates in appwrite 1.3.8
@zjjt Couldn't locate it.
@hamed look for the line 62 in the docker-compose.yml file and mount your volume there. for the email-base.tpf file here is its contents modified for my testing:
content of my appwrite folder
you have to create the email-base.tpl file
here is how it looks like when delivered
By default, there's no mounted tpl file at that line?
@hamed yes there is nothing there by default
@zjjt It actually worked, thanks ❤️ , I wonder if we're going to mount it again after each version upgrade
@hamed from what i could gather, the next major version should have a template editor right in the console thus we would not need the current method anymore.But for safety i ll keep it around in my docker-compose so that it always boots up with it
instead of putting ~/appwrite, you can use relative paths like ./email/email-base.tpl
Also, next step, is to use a docker-compose.override.yml file instead of modifying your docker-compose.yml file 😉
so if you use a docker-compose.override.yml file, even if the docker-compose.yml file is upgraded, it will still mount
@Steven you are right in a hurry I forgot about your advice to use the override...thanks
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- I recently applied for the free plan und...
I recently applied for the free plan under the GitHub Student Developer Pack. However, my billing status still shows $15, and it mentions that this amount will ...
- Bug Report: Appwrite Console UI Issue on...
Steps to Reproduce: - Navigate to any collection page in the Appwrite console UI. - Open the menu and click on "Create Collection." - Observe that the dialog to...