Blocking an attachment in transactional email

Last update: 2023-10-27

If you want to send an email with an attachment, you have to build a delivery template on the Marketing instance with the attachment as a template.

Description

Environment

Campaign v8

Issue/Symptoms

How to send an email with an attachment in Adobe Campaign Classic v8?

Resolution

Follow these steps:

  • To send an email with an attachment, you need to create a delivery template on the Marketing instance that includes the attachment.

    If you don’t create this template, you won’t be able to send an email with an attachment.

  • Also, one can create a typology rule for type control in the Messaging Centre (MC) instance and return false if the flag @hasAttachments is set during delivery.

  • Here is an example that can be adapted to your specific scenario. Please note that this is only a guideline.

    if (delivery.hasAttachments)
    
        {     logError(“The delivery has an attachment which is not authorised as per our policy”);     return false; }
        else
    
        return true;
    

On this page