2022.1

Table Of Contents
Note
Even though email clients do not read CSS files, CSS files can be used with the Email
context in the Designer. See "Using CSS files with HTML email" on page551.
Two attachments are added to the email, in different ways.
l The Return and Refund Policy PDF is stored in the template (in the Images folder). Right-
click the Email section and select Attachments to see how this is attached to the email.
l The delivery note is a dynamic attachment, based on a data field. It is attached to the
email by the Attachment script. To learn how to create dynamic attachments, see
"Dynamic attachments:creating file names based on data fields" on page571.
All scripts are listed on the Scripts pane. You can double-click to open them.
Tip
Hover over the name of a script in the Scripts pane to highlight parts of the template that
are affected by the script.
l Some data are added to the email via simple text scripts. Such scripts search the
template in order to replace a certain text that is surrounded by @ (e.g. @First@) by the
correct data. To add a text script you just drag-and-drop data onto the template. (See:
"Variable Data" on page846.)
l The To and Subject scripts apply to email fields. (Click Email Fields at the top of the
email to expand all email fields.) For information about this kind of scripts, see: "Email
header settings" on page562.
l Finally, there are two custom scripts:
l The Personalize Support link script adds the order number to the 'support team'
link (which is a mailto link).
l The Year script puts the current year in the footer.
For more information about writing custom scripts, see: "Writing your own scripts" on
page918.
Page 146