Magento 2 Email Templates for Transactional Emails

Magento 2 Email Templates

Transactional emails are sent to a user who did an action on the site, for example, registered, made an order, wants to reset a password, etc. Unlike commercial emails, a transactional email is sent to one person at a time and is a response to a person’s action on a site. 

In Magento 2, you won’t find transactional emails as they were renamed into Email Templates. And we think this new name better describes the opportunities offered in Magento 2: now, you can determine the layout, content and formatting of the email. Furthermore, each template can be related to a definite kind of transaction. Below, we’re describing 4 essential kinds of transactional emails (email templates), the way you can configure and customize them.

4 Kinds of Transactional Emails

4 Kinds of Transactional Emails Essential for Ecommerce

Welcome Email

A welcome email fulfills simultaneously two tasks: confirms the email address and gives the first impression of you as a company. To make a good one, you must thoroughly think the content through. You can include into a welcome email not only a registration confirmation but also any additional information a customer may need to contact you (a phone number, email), links to social media profiles to connect with a customer in a preferred way, calls to action or instructions. 

Password Reset Email

The password reset email is always in high demand. It is essential to let your customers recover the password or change it to get the access to the site. You can define email templates that will be sent in case the customer has forgotten the password, wants to change it or asks for a password hint. To provide the customers with such round-the-clock service, find Customer Configurations in Settings > Configurations, and fill in the fields in the Password Options section.

Order Confirmation Email

Any customer is eager to make sure that their order has been received and their transaction has been processed. That’s why the order confirmation email is a must for an online store. To enable order confirmation emails, follow the path Admin > Stores > Settings > Configuration > Sales > Sales Emails > Order. In the Order section, you have to fill in the fields.

Shipment Email

Another eagerly awaited email is a shipment email, where you confirm that the purchase has been sent to the buyer. In this email, you can also include a tracking number if the carrier provides this service and other information that you find will be valuable to the customer. 

All these transactional emails are configurable and customizable, and in the following sections, we’re describing how you can do it.

How to Configure Email Templates

How to Configure Email Templates in Magento 2

There are several elements common in every transactional email, such as the logo, header and footer. You can configure them once and display in every transactional email sent from the store. For this purpose go to Admin > Content > Design > Configuration. Define the store view you are to configure. Afterward, click on Edit > Other Settings > Transactional Emails

In Transactional Emails section, you can upload a logo image and define its size. Moreover, you can define a custom footer and header here or leave default ones. 

How to Customize Email Templates in Magento 2

You are absolutely free to customize the body text of each transactional email. Just keep in mind that emails must serve their purpose, so don’t forget to include a password hint in a Password Reset Email or a shipment information in a Shipment Email. Aside from that, it’s up to you how to express your brand in transactional emails. We’ll just show the way where you can customize email templates in Magento 2:

  1. Follow the path Admin > Marketing > Communications > Email Templates.
  2. In the Email Templates section, you can create a new template or edit an existing one with HTML and CSS. However, don’t override the code enclosed in double braces.
  3. Here, you can also insert variables. Leave the cursor in the place of the text where you want to insert a variable and click on the bottom above the text Insert Variables. Select the variable from the pop-up.
  4. While working on the editing of an email template, you’re able to preview it and bring improvements if needed.
  5. After you’ve saved the adjustments, update the configuration. For this, go to Admin > Stores > Settings > Configuration > Sales > Sales Emails. Select the section you’re up to configure (Order, Password, Shipment, etc.) and set a new email template.
  6. Don’t forget to hit Save and check. 

We hope, you’ve found the article useful. Share in comments your results! In case you think it’s too difficult for you and you need a professional developer, don’t hesitate to contact Our Magento Certified Developers!

You may also be interested in the following articles:

Comments (0):
Leave a comment:
*Your comment will be published after approval by site administrator.