Appearance
How it works
The Email Template module is intended to style all emails sent from EE. To fully understand how it works under the hood and where potential errors might occur, see the step-by-step process below:
- When you send an email with EE, such as from the Communicate tab, EE processes it using the Email parser.
- When the email is sent via the EE Email parser, the Email Template module intercepts it using a hook
- The module extracts the body, determines the email type, and applies the appropriate settings. It then creates two new variables:
{subject}
and{body}
. - In the settings page, there is a field called "template", where you place your HTML template containing the
{subject}
and{body}
variables. - The module replaces
{body}
and{subject}
in the template with the actual values from step 1. - If the module finds additional template tags, it will attempt to parse them as well.
- Once the template is fully processed, the module resends the email, now formatted with the template.
- Tip: For better HTML formatting, use the Premail site to compile everything into a single HTML file.