Blocking an attachment in transactional email

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 description

Environment

Campaign v8

Issue/Symptoms

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

Resolution 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.

    code language-none
    if (delivery.hasAttachments)
    
        {     logError(“The delivery has an attachment which is not authorised as per our policy”);     return false; }
        else
    
        return true;
    
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f