Frequently Asked Questions
Instead of customizing default Magento 2 email templates you are recommended to create your own templates and set Magento 2 to use them instead of the default ones. In this case, you can add unique templates as physical files in your theme or create them using the Admin Panel. We are going to describe how to create the templates via the Admin Panel.
Make sure your emails reach customers with the help of Magento 2 SMTP extension.
Keep in mind that any Magento 2 custom templates created via the Admin Panel have priority over default or theme-based templates. To edit Magento 2 email templates do the following:
Choose one of the templates to use it as a jumping-off point.
Template Name: enter the name you want to identify the template in the Admin Panel;
Template Information: edit the subject of the Magento 2 email template, which is to be displayed in the subject line once it’s sent. The field can include system variable if you choose them:
Template Content: type in the content of the future template;
Template Style: add CSS styles for the template in the field. The style elements will be included in the <head> tag of the file put between tag <style>...</style>. Though some email clients don’t support styles in the tags, therefore you’ll have to use LESS files instead. The styles will be included in the template_styles variable.
After a new email template is added\created you need to set it to be applied in Magento 2.
If you need to add them using a theme, follow the link.
The templates are stored in <module_dir>/view/<area>/email directory of the respective modules.
If you want to customize an email template, use the system variables described above. You can also use your own variables and set the values in the Admin Panel. For this, go to System>Custom Variables:
You can customize an email logo using a theme:
E.g.: If Amasty wants to enter logo, it should be added to app/design/frontend/Amasty/amasty/Magento_Email/web directory;
The email styles are divided between several files. To find a necessary one and edit or customize the theme settings, follow the link.
You can implement the Follow Up Email extension to easily customize follow-up email templates, create Magento transaction emails, and effectively manage their dispatch or avail of Abandoned Cart Email to get into ear of each type of your targeted customer groups.
According to the statistics, you may find helpfull the following question about newsletter subscription.