I want to change the Activation Email template, I couldn’t find activation_email.txt file in ~/.local/share/tutor/data/openedx/staticfiles/templates/emails directory. I tried adding this file in custom theme but it didn’t work.
If you create a base_body.html file in this path inside a custom theme it does override the template for the passwordrecovery email, however the activation one does not use it:
I’m running into the same issue with Tutor 10.2.2 which uses Juniper.
I’ve followed the suggestion here Import from Opencraft + email template and have added the base_body.html to my custom theme directory lms/templates/ace_common/edx_ace/common/base_body.html.
However, as @juansele mentioned above, this fixes the password reset email, but not the account activation email. The account activation email is still sent with the outdated text and a header with links that go to a test url site.
In my attempts to fix the account activation email, I’ve tried the following to no avail:
adding a common directory to my custom theme at common/templates/student/edx_ace/accountactivation/email/ to customize the body.html and body.txt files.
tried adding the above files to lms/templates/student/edx_ace/accountactivation/email/
tried adding the activation_email.txt file to lms/templates/emails.
There was mention in this post on StackOverflow about needing to purge the mako template directory; however, I can’t find it when I view the docker container using tutor local run lms bash.
Is there a way to edit the files in the docker container and then freeze those changes as an overlay layer? Alternatively, is it possible to access the actual dockerfiles that are used to create the images and modify the files there?
Thanks for any tips on where to look / what to do next.
Hi @pcliu thank you for your answer. I did the same, but still the EDX logo in the activation email and my custom logo in the password reset email. I don’t know why and how it works, maybe there are some details inside the base_body.html, could your share that with me to match my file and yours. Thank you.
I just copy
./openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_body.html in edx-platform into my theme and change the src in header section. @grinx