Embed RSS feeds into your email campaign

If your website has a RSS feed of your blog posts or news articles then you can use this to automatically populate email campaigns with your most recent posts. This makes allot of sense when combined with BoltMail's recurring sending feature. This would allow you to automatically send out an email containing your most recent posts every week or month. 

To add an RSS feed to an email campaign:

Here is a brief example of the HTML code you might add to your email template to use this feature (if using the drag and drop email builder you can drag the HTML block from the Content pane and then copy and paste the code below, just make sure you replace the url with your feed url):

    [XML_FEED_BEGIN url='https://status.voyager.nz/history.rss' count='5']
                    <a href="[XML_FEED_ITEM_LINK]">
                        <img src="[XML_FEED_ITEM_IMAGE]" width="100" height="100"/>
                    <strong>[XML_FEED_ITEM_TITLE]</strong><br />

The [XML_FEED_BEGIN] tag accepts following arguments:
urlstring – the url from where we will fetch the feed items. Mandatory.
count – integer – the number of items you want to receive back from the feed. Optional.
offsetinteger – the number of items you want to skip loading. Optional.
days-back – integer – the number of days to look back for posts. Optional.
no-item-actionstring – what action to take when no items are found in the feed. Valid values: postpone-campaign (postpones the campaign till next day). Optional.
send-only-unique-items – string – if we should only send unique items. This prevents the email from containing posts that were already displayed in previous emails, this feature only works for recurring campaigns. If no new items are found, then no-item-action is applied. Valid values: (yes or no). Optional.

Below is a list of the available tags for the items in the feed:
[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 URL of the image of the item, use this as the source of an image
[XML_FEED_ITEM_LINK] – The url/permalink to the item
[XML_FEED_ITEM_PUBDATE] – Item publish date
[XML_FEED_ITEM_GUID] – Item guid.

Please ensure that you test your campaign before sending it out! On the template step click the "Save content" button found near the bottom of the screen. Then click the "test template" button found near the top of the screen.

To create a recurring email campaign:

When creating your campaign, on the last step, tick the "Advanced recurring" box and enter your desired schedule. To ensure that your email is fresh do not set a schedule that is shorter than the frequency with which you would normally post new articles!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I deleted a list and now my campaigns are missing

Deleting a list will delete all data connected to that list including all email campaigns sent to...

Our IP addresses

The BoltMail app including our API, web hooks, recurring imports and database imports use the...

Forward to a friend

If a recipient of your email campaign decides to forward the email to a friend or colleague there...

How to import new subscribers from a Google Sheet automatically every day

We were recently asked this question by a customer so I thought it would be nice to share the...

Securing web hooks, recurring imports and database imports

You should lock these features down to only allow our IP addresses, please see: Our IP addresses...