The RSS Elements in the Email Builder allow you to automatically send emails containing dynamically inserted content when a new RSS (Real Simple Syndication) item is published.
This will dynamically populate <channel> tags from your RSS Feed (learn more about the <channel> tag here). The RSS Header Element supports the following RSS channel tags – use their respective Custom Value to populate the email with the corresponding tag value:
RSS Tags | Custom Value For HL |
<title> | {{rss_feed.title}} |
<description> | {{rss_feed.description}} |
<link> | {{rss_feed.url}} |
<lastBuildDate> | {{rss_feed.date}} |
When using the RSS Header block, you’ll see two options in the “RSS Editing Options” dropdown selector: Basic and Custom.
Basic: adds the following non-editable text in Text Editor
Custom: adds the following editable text in Text Editor
NOTE: The four custom RSS <channel> variables can also be used in the subject field like this:
The RSS Items block accepts the following Custom Values and will dynamically insert their corresponding RSS Tags:
RSS Tags | Custom Values | Description |
<title/> | {{rss_item.title}} | The title of the RSS item is usually a blog post. title |
<description/> | {{rss_item.content}} | A summary of the RSS item in HTML format, which includes information inside the <description> tag. If there is no <description> tag in your feed, it will display the information in the <content:encoded> tag |
<link/> | {{rss_item.url}} | The text link to the RSS item online, which can be displayed as text or used in a hyperlink. content:encoded |
<content:encoded/> | {{rss_item.content_full} | The full content of the information inside the <content:encoded> tag for an RSS item, in HTML format. If there is no <content:encoded> tag, it will display the information in the <description> tag. |
pubDate | {{rss_item.date}} | The date the RSS item was published, in the format `MMM DD, YYYY hh:mm A`. We will provide support for custom formatting in the future. |
<dc:creator> | {{rss_item.author}} | The author of the RSS item media:content |
<media:content> | {{rss_item.imageUrl }} | This will provide the src URL of the image as text to render it as an image, use {{rss_img}}
{{rss_img alt=”alt_text” src=rss_item.imageUrl height=”200″ width=”200″}} |
<item> | {{#rss_items rss_items}} | This tag doesn’t display anything. It’s used to open the customized formatting for individual RSS items. |
</item> | {{/rss_items}} | This tag doesn’t display anything. It’s used to close the customized formatting for individual RSS items. |
When using the RSS Items block, you’ll see two options in the “RSS Editing Options” dropdown selector: Basic and Custom.
Basic: adds the following non-editable formatted text in Text Editor
Custom: adds the following formatted text and the Text editor will become editable
The values returned by the RSS-based custom variable {{rss_item.title}} are HTML-escaped. For example, if the expression contains &, then the returned HTML-escaped output is generated as & or if your RSS Feed has HTML-based text instead of plain text then it will be rendered as plain text.
If you don’t want it to escape a value, use the “triple-slash”, {{{:
Eg: if your RSS feed source is something like this
once you will use “triple-slash” {{{rss_item.content}}} it will render like this
To schedule RSS Feed based emails:
Once all inputs fields are filled along with the recipient, in Review and Send side panel You will see the following new information
When using the “Send Test Email” functionality with an email that has RSS Elements, you will see a new “RSS Feed URL” field where you’ll need to provide the RSS Feed URL from where you want to pull the content. Without this, all RSS tag-based custom variables will replace by empty text.
NOTE: If you try to Schedule RSS Element-based email template through normal scheduling options (send now, schedule for later, send in drip mode), all RSS tags-based custom variables will replace by empty text.
You can see your scheduled RSS Campaigns in the Scheduled Tab, where you’ll see the type listed as RSS. For other scheduled emails (send now, schedule for later, send in drip mode), the type will be Normal.
The example above is an RSS email set to send Daily and we can see the Next Execution time will be at 2 pm. Once the 2 pm email has been sent, it will be marked as complete and a new scheduling/execution will be scheduled with the same configuration (RSS Feed URL, send Daily) with the following day’s date.
With RSS-type scheduling, you can perform the following actions:
Edit: If you click the pencil icon to edit, you will see a confirmation modal asking you to confirm that you would like to cancel the currently scheduled email and re-schedule a new one.