About

An email template is a pre-designed email design (as well as the design of website) which Magento applies to all outgoing emails. They are also known as the transaction emails. The current version of Magento sends 37 kinds of emails including new account, new order, new invoice etc.

If your Magento installation is sending a unique email design each time and not the standard Magento emails design You'll begin to develop brand consistency across all of your marketing channels including your website, transactional emails, newsletter, and social media.

This occurrence is especially true if you use a unique design and logos in your marketing to maintain brand consistency and awareness.

Customize email templates in the filesystem

Customize header and footer templates

Every frontend email template includes a header and footer template using these two directives:
{{template config_path="design/email/header_template"}}{{template config_path="design/email/footer_template"}}
By default, those two directives load contents from these files:

Inline & Non-inline CSS Styles

Localization

In order to support the translation of content, all strings in emails are output using the trans directive. Example:

{{trans "Once your package ships we will send you a tracking number."}}

The trans directive will translate strings into whatever locale is configured for the store from which the email is being sent. For example, if an email is being sent from a store view that is configured to use the fr_FR locale, the emails are translated to French.

Customize email templates using the Magento Admin

Any templates configured in the Magento Admin take precedence over default or theme-based templates.

1. Navigate to MARKETING > Communications > Email Templates.

2. Click Add New Template.

3. Choose the template and click Load Template.

4. Edit the template.

5. Click Save Template.

Now that you have created a template, you must configure that template to be used:

1. Locate the section that contains the template you want to override.

2. Select your newly created template from the list.

3. Click Save Config.

Customize email content

To add the store and sales related information to a template, use system variables.
System variables are placeholders which are replaced by particular values when the actual email is generated. For example, the {{var store_hours}} variable is replaced by the value set in the
STORES > Settings > Configuration > GENERAL > General > Emails section.
To add a variable to your template content:

1. Navigate to MARKETING > Communications > Email Templates.

2. Create a new template or edit an existing template.

3. Click to place the cursor in the text in which to insert the variable.