Use predefined variables
Predefined variables make it easy to personalize email and newsletter templates, and other types of content. The list of allowed predefined variables appears when you click the Insert Variable button. As shown in the following image, the list of available variables for a specific email template is determined by the data that is associated with the template. See the Variable Reference for a list of frequently used email templates and their associated variables.
Add a variable to an email template
-
On the Admin sidebar, go to Marketing > Communications > Email Templates.
-
Do one of the following:
-
To add the variable to an existing template, click the template in the list to open in edit mode.
-
To use the variable in a new template, click Add New Template and customize the default template code. See Message Templates.
-
-
Under Load default template, choose the Template that you want to customize.
-
To apply a template, click Load Template.
The Currently used for field displays the configuration path for the template. The Template Subject and Template Content are automatically generated relative to the selected template.
-
Template Subject - This text is displayed in the subject line of an email.
-
Template Content - This text is displayed in the full content of the sent email.
img-md w-600 modal-image -
-
Enter a Template Name.
-
For a list of the predefined variables that can be used with this email template, click Insert Variable.
Determine which variable that you want to insert into the template. Then, click Close (X) in the upper-right corner. (You return to this later.)
-
To see a mock-up of the template, click Preview Template in the button bar.
When the preview opens in a new tab, determine where you want to place the variable in relation to the other content. Then return to the original tab to continue.
img-md w-600 modal-image -
In the Template Content box, position the insertion point where you want the variable to appear and click Insert Variable….
-
In the list of available variables, click the one that you want to insert into the template.
-
When complete, click Save Template.
Convert the template to plain text
-
Open a template in edit mode.
-
At the top of the page, click Convert to Plain Text.
-
When prompted to strip tags, click OK.
-
To save the plain text version, click Save Template.
Restore the HTML version
-
At the top of the page, click Return HTML Version.
-
To save the HTML version of the template, click Save Template.