1.8

Table Of Contents
72E8-486B-A206-516BF10E21F6}.pdf'
title='INV1375461.pdf'>");
Examples
The following script attaches a PDF file named letter-CU00048376.pdf to each generated
email. The PDF file is located in the Images folder on the Resources panel.
results.append("<link rel='related' href='images/letter-
CU00048376.pdf'>");
If that same file would be located on the C: drive, the script should refer to it as follows:
href='file:///C:/letter-CU00048376.pdf'.
The link doesn't have to be static; you could use data from the record set to build the link, for
example:
var customerID = record.fields.ID;
results.append('<link rel="related" href="images/letter-' +
customerID + '.pdf">');
Renaming attachments
External files that are sent as attachments can be renamed via the script that attaches them to
the email, by putting their intended name in the title attribute. For example:
results.append("<link rel='related' href='images/{8FCEC8BC-72E8-486B-A206-
516BF10E21F6}.pdf' title='INV1375461.pdf'>");
Print and Web sections that are attached to an email can be renamed via a Control Script; see
"Parts: splitting and renaming email attachments" on page651.
Web
With the Designer you can create one or more Web templates and merge the template with a
data set to generate personal web pages.
The Web context is the Web output channel and the folder in the Designer that can contain one
or more Web templates. CaptureOnTheGo templates are a special kind of Web templates. They
are stored in the Web folder as well.
Page 381