Send Message with Inline Attachments

Overview

This scenario creates an event with customer-specific attachments included in the KCXML message.

XML


<?xml version="1.0" encoding="UTF-8"?>
<kanaRoot>
<EventRequest Id="" CompanyName="default">
<Customer KeyField="EmailAddress" EmailAddress="[email protected]">
</Customer>
<Event CampaignName="ETCamp1">
<ExternalXML>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Greatest Hits</title>
<artist>Dolly Parton</artist>
<country>USA</country>
<company>RCA</company>
<price>9.90</price>
<year>1982</year>
</cd>
</catalog>
</ExternalXML>
<EventAttachments>
<EventAttachment Name=”statement.pdf” url=http://contentserver/stmt?c=xcdsd&d=dec2008 />
<EventAttachment Name=”privacy-policy.pdf”
Purge="yes" Encoding=”base64”>Asjdfhififwdd923849238swedlkwajed0293802</EventAttachment>
</EventAttachments>
</Event>
</EventRequest>
</kanaRoot>


Result


An email is sent with two attachments:

  • statement.pdf

  • privacy-policy.pdf