Skip to main content

Email delivery working example

The following example shows how to create an XML instructions file for an Email delivery using a zipped CSV file to add new recipients.

See Related Pages below for links to the topics that describe each tag.

    <?xml version=“1.0“ encoding=“utf-8“?>
<contactlab xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance“
xsi:schemaLocation=“http://t.contactlab.it/contactlab/xmld/contactlab.xsd“>
<auth>
<suid>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</suid>
<key>bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb</key>
</auth>
<campaign>
<email>
<newsletter>1</newsletter>
<recipients>
<retry />
<new_recipients>
<csv_file>filename.csv.zip</csv_file>
</new_recipients>

<!– The test filter is used below with email rendering enabled.
The normal filter cannot be applied because new recipients have been added. >

<filter><test rendering=“true“>1</test></filter>
</recipients>

<!– The manual delivery method prepares the delivery but doesn’t send it.
Use the Web UI to complete the delivery. >

<delivery method=“manual“>
<remove_duplicates />
</delivery>
<message>
<encoding>utf-8</encoding>
<headers>
<subject>subject</subject>
<mail_from>
<name>John Doe</name>
<address>from@example.com</address>
</mail_from>
<reply_to>replyTo@example.com</reply_to>
</headers>
<publish_on_web ovveridetaf=“true“>
<taffilename>publishOnWeb</taffilename>
<taftemplate>http://www.example.com/myuri.html</taftemplate>
</publish_on_web>
<preferred_content>both</preferred_content>
<body>
<html>
<content>
<embed><![CDATA[body (html <a track=”yes”
href=”http://www.example.com“>Description</a>)]]></embed>
</content>
<preferences>
<stats>
<links>parse</links>
</stats>
</preferences>
</html>
<text>
<content>
<uri>http://www.example.com/myuri.htm</uri>
</content>
</text>
</body>
</message>
</email>
</campaign>
</contactlab>