Attach files to an email attaching-files

About email attachments about-email-attachments

You can attach one or more files to an email delivery.

NOTE
To avoid performance issues, it is recommended not to include more than one attachment per email. The recommended threshold can be configured from the list of Campaign options. Refer to the Campaign Classic documentation.

There are two possible cases:

  • Select a file and attach it to the delivery as it is.
  • Personalize the content of the attachment for each recipient. In this case, you need to create a calculated attachment: the name of the attachment is computed at the time of delivery for each message depending on the recipient. The content can also be personalized and converted into PDF format at the time of delivery, if you have the Variable Digital Printing option.
NOTE
This type of configuration is generally carried out in the delivery templates. For more on this, refer to this page.

Guardrails attachments-guardrails

To avoid performance issues, images included in emails cannot exceed 100 KB. This limit, set by default, can be changed from the NmsDelivery_MaxDownloadedImageSize option. However, Adobe strongly recommends to avoid large images in your email deliveries.

Adobe also recommends to limit the size and number of attached files. By default, you can only add one file as an attachment to an email. This threshold can be configured from the NmsDelivery_MaxRecommendedAttachments option.

Learn more in the list of Campaign options in the Campaign Classic documentation.

Attach a local file attaching-a-local-file

To attach a local file to a delivery, follow the steps below.

NOTE
You can attach several files to a delivery. Attachments can be in any format, including zipped format.
  1. Click the Attachments link.

  2. Click the Add button.

  3. Click File… to select the file to be attached to the delivery.

    Edit attached files dialog with the Add menu open and File... selected to attach a file to an email delivery

You can also directly drag and drop the file in the delivery Attachments field, or use the Attach icon from the delivery assistant toolbar,

Attach icon in the delivery assistant toolbar, next to the Email parameters section

Once the file is selected, it is immediately uploaded onto the server to be available at the time of delivery. It is listed in the Attachments field.

Email parameters with the uploaded file listed in the Attachments field

Creating a calculated attachment creating-a-calculated-attachment

When you create a calculated attachment, the name of the attachment can be computed during analysis or delivery of each message and can depend on the recipient. It can also be personalized and converted to PDF.

Edit attached files dialog with the Add menu open and Calculated attachment... selected

To create a personalized attachment, follow these steps:

  1. Click the Attachments link.
  2. Click the Add button, then select Calculated attachment.
  3. Select the type of calculation from the Type drop-down list:

Attachment definition dialog with the Type drop-down list showing the four calculated attachment options

The following options are available:

  • File name is specified when creating the delivery template
  • The content of the file is personalized and converted to PDF during the delivery of each message
  • The file name is computed during delivery analysis (it cannot depend on the recipient profile)
  • File name is computed at the time of delivery for each recipient (it can depend on the recipient)

Attaching a local file attach-a-local-file

If the attachment is a local file, select the option: File name is specified when creating the delivery template. The file is selected locally and uploaded onto the server. Follow the steps below:

  1. Select the file to upload in the Local file field.

  2. Specify the label if necessary. The label replaces the filename when viewed in messaging systems. If nothing is specified, the filename is used by default.

    Attachment definition General tab with Type, Label and Local file fields and the Upload file on the server option

  3. If necessary, select Upload file on the server, and then click Update on server to start the transfer.

    Upload progress window listing the log messages and showing the file transfer to the server at 100 percent

The file is then available on the server to be attached to the different deliveries created from this template.

Attaching a personalized message attach-a-personalized-message

The option The file content is personalized and converted into PDF format at the time of delivery for each message lets you select a file with personalization fields, such as the last name and first name of the intended recipient.

Word processor document containing recipient first name and last name personalization fields for a PDF attachment

For this type of attachment, apply the following configuration steps:

  1. Select the file to upload.

  2. Specify the label if necessary.

  3. Select Upload file on the server, and then click Update on server to start the transfer.

  4. You can display a preview. To do this, select a recipient.

    Attachment definition dialog previewing the personalized PDF for a recipient selected from the Preview list

  5. Analyze your delivery and then start it.

    Each recipient receives a personalized PDF attached to the delivery.

    Received email with a personalized PDF attachment, opened to show the recipient name in the greeting

Attach a calculated file attach-a-calculated-file

You can calculate the attachment name during the delivery preparation. To do this, select the option The file name is calculated during delivery analysis (it cannot depend on the recipient).

NOTE
This option is used only when the delivery is sent by an external process or a workflow.
  1. Specify the label you wish to apply to the attachment.

  2. Specify the access path of the file and its exact name in the definition window.

    note important
    IMPORTANT
    The file must be present on the server.

    Attachment definition with a script computing the file path and name, including the date, during delivery analysis

  3. Analyze and then start your delivery.

    The filename computation can be seen in the analysis log.

    Delivery analysis log with the line showing the computed attachment file name result highlighted

Attach a personalized file attach-a-personalized-file

When selecting the attachment, you can choose the option The file name is calculated during delivery for each recipient (it can depend on the recipient). You can then map recipient personalization data with the name of the file to send.

NOTE
This option is used only when the delivery is sent by an external process or a workflow.
  1. Specify the label you wish to apply to the attachment.

  2. Specify the access path of the file and its exact name in the definition window. If the filename is personalized, you can use the Personalization fields for the relevant values.

    Attachment definition using the recipient last name in the file path to pick a different file for each recipient

    note important
    IMPORTANT
    The file must be present on the server.
  3. Analyze and then start your delivery.

    In the example below, the attached file was chosen according to its name as defined using the merge fields.

    Received email with one attached file whose name was built from the recipient last name

Attachment settings attachment-settings

For the first two options, you can choose Upload file on the server by selecting the appropriate option. The Update the file on the server link lets you start uploading.

Attachment definition General tab with Upload file on the server selected and the Update on server link

A message tells you that the file has been uploaded to the server:

Attachment definition showing the File already exists on server message

For a change of file, a warning message is displayed:

Attachment definition showing the warning that the local file is not equal to the one on the server

The Advanced tab lets you define advanced options on attached files:

  • You can define filter options to avoid sending the attached file to all recipients. The option Enable filtering of recipients who will receive the attachment activates an input field used to define a recipient selection script, which must be entered in JavaScript.

  • You can script the name of the file in order to personalize it.

    Enter your text in the window and use the personalization fields available in the drop-down list. In the following example, the filename is personalized to contain today’s date and the name of the recipient.

    Advanced tab with a script that personalizes the attachment file name, and the email showing the resulting name

recommendation-more-help
campaign-help-v8