Email template structure
The structure of an email template is not set in stone and can be easily customized. In some of the third-party extensions, it is possible to find email templates that do not know the key parts of an email, which are:
- Email subject: This can be defined as an HTML comment such as this:
<!--@subject {{trans "Welcome to %store_name" store_name=$store.frontend_name}} @-->
- Variable definition: The email subject is followed by a list of variables that are used in the template file along with their sample values. The following is an example from a customer registration email:
<!--@vars { "var store.frontend_name":"Store Name", "var this.getUrl($store,'customer/account/',[_nosid:1])":"Customer Account URL", "var customer.email":"Customer Email", "var customer.name":"Customer Name", "var this.getUrl($store,'customer/account/createPassword/...