1.7

Table Of Contents
To test a template, you can test the scripts (see "Testing scripts" on page248) and send a test
email first (see "Send Test Email" on page327), before actually sending the email (see
"Generating Email output" on page549).
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115.
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245.
Other ways to speed up script execution are described in another topic: "Optimizing scripts" on
page251.
Images
When a template that contains lots of images is merged with a large record set, the many file
requests may slow down the process of output generation. The solution is simple: combine the
images into a single image file and display the part that holds the image. This reduces the
number of file requests and can improve the output speed significantly.
Step 1. Create a file that contains a collection of images.
Static images may go in any type of image file. Store images that need be added dynamically to
the template, in one PDFfile, one image per page.
Page 534