Email Templates
Email Templates provide a top-level wrapper for one or more of your system email’s contents, allowing for consistent branding and styling across emails sent via the CMS (such as Workflows, Autoresponders, reminders, follow-ups, abandon cart emails, etc.).
Found under ‘Email Notifications’ > ‘Email Templates’, you can create any number of templates. You could duplicate the “System Template” as a starting point, using the ‘Duplicate’ action, or start from scratch with your own code.
Once you’ve created your email template/s you’ll be able to apply them to the system emails throughout the admin when configuring those email settings and body content.
Typically, an email template would set up the HTML document, with <head>
section, styles and a framework for the email body, such as a branded header - with company logo - and a footer section - with company sign-off/signature.
Example Code for a basic HTML Email Template
In the below code, we set up the HTML document, assign some meta tags, embedded styles and a table structure for the header, footer and body container.
In the body container we have the required Liquid tag {{this.emailContent}}
which is were the email body content will be dynamically inserted, based on the type of email being sent (ie: Workflow Notification, Follow-up Email, Autoresponder, etc.)