2018.2

Table Of Contents
http://www.mysite.com/somefolder/attachments/INV2018.246.pdf or
'http://localhost:8080/pod/v1/deliverynotes/{8FCEC8BC-72E8-486B-A206-
516BF10E21F6}').
Note
For attachment names, it is recommended to use only US-ASCII characters. Other
characters may not be supported by all email servers and clients.
5. The attachment's name in the email will be the part of the path that comes after the last '/'.
When there are no forward slashes in the path, the full path is used.
You may want to use a custom attachment name. To learn how to do that, see "Renaming
attachments" below.
6.
Click OK or Apply to save your changes.
Note that an Attachments script creates one single attachment. To add more attachments, you
could either add Attachments scripts, or click the Expand button and edit the script.
If you want to write your own email attachment scripts, there is a how-to that you may find
helpful: How to add custom email attachments.
Renaming attachments
Print and Web sections that are attached to an email can only be renamed via a Control Script;
see "Parts: splitting and renaming email attachments" on page756.
Renaming dynamic attachments
Dynamic attachments can be renamed via the script that attaches them to the email. Double-
click the script to open it and click the Expand button.
Dynamic attachment scripts add a <link> element to the <head> of an Email section. The title
attribute of that element specifies the attachment name that will show up in the email.
Take a look at the last line of the script:
results.append(query("<link rel=related>").attr("title", result.split('/').pop()).attr("href", result));
To give the attachment another name, you have to replace the bold part of the code by that new
name. For example:
results.append(query("<link rel=related>").attr("title", "Invoice.pdf").attr("href", result));
Page 459