2018.1

Table Of Contents
Email output
The Email context outputs HTML email with embedded formatting to an email client through the
use of an email server. The HTML generated by this context is meant to be compatible with as
many clients and as many devices as possible.
Although the Email context can contain multiple Email templates, only one of them can be
merged with each record. Which one is used, depends on a setting; see "Email output settings
in the Email context and sections" on page725.
Email is sent in a single batch for the whole record set.
To test a template, you can test the scripts (see "Testing scripts" on page332) and send a test
email first (see Send Test Email), before actually sending the email (see "Generating Email
output" on page724).
Attachments
Output, generated from an Email template, can have the following attachments:
l The contents of the Print context, in the form of a single PDF attachment.
l Other files, an image or a PDF leaflet for example.
Attaching the Print context is one of the options in the Send (Test) Email dialog.
To learn how to attach other files, see "Email attachments" on page159.
Optimizing a template
Scripts
In the process of output generation, the execution of scripts may take up more time than
necessary. To optimize a template, it helps to disable scripts that don't have an effect on the
context that you're generating output from; see "Managing scripts" on page329.
Other ways to speed up script execution are described in another topic: "Optimizing scripts" on
page336.
Page 707