Email content
The <content>
element is where you define the main <html>
and/or <text>
content for the Email.
The <content>
element is:
- A child of both the HTML and text sections and should be added to each, as required
- Positioned within the
<html>
and/or<text>
sections, in the Body section of the XML instructions file, as required
Use
To add content to the Email, you can:
- Embed HTML or text
- Enter the URI of a resource to be imported
Embedding content
Use the <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.
Example:
<content>
<embed><![CDATA[<html><body><h1>This is html</h1></body></html>]]></embed>
</content>
or:
<content>
<embed><![CDATA[This is simple text]]></embed>
</content>
Using a URI
Caution:
You should only use a URI to add material if you are sure of its content and source.
To add content using a URI:
Use the <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.
Example:
<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.