<content> element is where you define the main
<text> content for the Email.
<content> element is:
- A child of both the HTML and text sections and should be added to each, as required
- Positioned within the
<text>sections, in the Body section of the XML instructions file, as required
To add content to the Email, you can:
- Embed HTML or text
- Enter the URI of a resource to be imported
<embed> tag within the
<content> element to enter the relevant html or text content. It is best practice to wrap the content with a CDATA section, to avoid XML syntax problems.
<content> <embed><![CDATA[<html><body><h1>This is html</h1></body></html>]]></embed> </content>
<content> <embed><![CDATA[This is simple text]]></embed> </content>
Using a URI
You should only use a URI to add material if you are sure of its content and source.
To add content using a URI:
<uri> tag within the
<content> element to enter a string that represents the URI of the resource to be imported. This may, for example, be a Web page.
<content> <uri>http://www.example.com/faq/part1.html</uri> </content>
If you are adding plain text content, you should ensure that the imported resource is structured accordingly.
- Recipients section
- Delivery section
- Notes section
- Message section
- Building a campaign with XMLDelivery
- Filtering and added recipients
- Activating link tracking
- Disabling the automatic HTML template prettify function
- Disabling the automatic HTML-entity unescape function
- Enabling ERB evaluation when unescape is disabled
- Contactlab section
- Using XMLDelivery
- Does XMLDelivery match your needs?
- Setting up XMLDelivery
- Working examples