You can embed XML(RSS) feeds into you campaigns easily.In order to take advantage of this feature, when you create a campaign, you will have to enable the feature.Next, in the campaign template, you will have to add a set of tags that ZoikMail EMA will recognize and transform into the actual content of the feed.
Here is a brief example of what you will have to add inside your campaign template to make use of this feature:
<meta http-equiv="content-type" content="text/html" />
[XML_FEED_BEGIN url='http://www.bata.com/news/feed/' count='5']
<imgsrc="[XML_FEED_ITEM_IMAGE]" width="100" height="100"/>
The [XML_FEED_BEGIN] tag accepts two arguments, url and count.
The url is, well, the url of the feed and the count is the number of items you want to receive back from the feed.
Below is a list with all the tags accepted for XML feeds:
- [XML_FEED_ITEM_TITLE] – The Item Title (the title of a post for example).
- [XML_FEED_ITEM_DESCRIPTION] – Short Item description.
- [XML_FEED_ITEM_CONTENT] – Item content.
- [XML_FEED_ITEM_IMAGE] – The Image of the Item.
- [XML_FEED_ITEM_LINK] – The URL/Permalink to the Item.
- [XML_FEED_ITEM_PUBDATE] – Item Publish Date.
- [XML_FEED_ITEM_GUID] – Item GUID.
All the above tags will work if the feed is valid and the content they try to replace exist in the feed.
You should test your feed campaign before sending, to make sure the tags are parsed and the content is fine because the parsing is strict, any minor error will stop parsing the tags and render them without transformation.