E-mail template for activation

I am looking to customize the activation e-mail template. I have created a copy of activation_email.txt in my theme. I would like to have the same style as the password recovery and enrolment email that goes out. Right now it’s just sent as text, but I’d like to include the html base.html style. How would I go about having that grey box template and styling like the other emails.

Any help would be greatly appreciated!

Hi @JavaMatt!

Which version of Open edX are you running?

The account activation email has been moved to the edx-ace framework for the Juniper release. The new account activation templates are HTML by default (see templates).

I believe Ironwood and older releases only support plain-text account activation emails.

1 Like

When the server was setup it was Ironwood, but we’ve recently updated to juniper. The email is still plain text though and not using the edx ace.

Would I be able to use this functionality if I put those templates under my theme folder? I’m a little un-sure of how to go about this. Thank you!

I didn’t try this myself, but I think you should be able to simply copy the relevant email templates to your theme and modify them the way you want.

The example red-theme contains a template override for one of the emails. This one overrides the text email template, but overriding the HTML version should work the same way.
You would have to put any template overrides into the lms/templates/student/edx_ace/accountactivation/email in your theme.

Hello all @mtyaka @JavaMatt @sambapete @jill
I am facing the same problem, actually i user juniper release and I’am trying to customize my email activation and to use greek language, I’ve translated it in my po files and it’s not working, then after reading that post i’ve understood that it is beacause i have the new release, so html templates.
I want to ask which files exactly i should clone using comprehensive theming because i have error on my build.
Error loading template lms/templates/schedules/edx_ace/accountactivation/email/body.html


Thank you in advance

You might have an error somewhere else.

Your message refers to lms/templates/schedules/edx_ace/accountactivation/email/body.html which does not exist and the image refers to lms/templates/ace_common/edx_ace/common/base_body.html which does not exist either. At least in the native installation.

Under the native installation, the same files exist at openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_body.html and common/templates/student/edx_ace/accountactivation/email/body.html

Have you tried using them without a theme first to check if your translations were working?