Automatically keep your audience updated with fresh content by integrating an RSS feed into your newsletter. If you already have an RSS feed, adding it to your email campaign is simple and efficient.
How to Add an RSS Feed to Your Email
Follow these steps to insert RSS updates into your email content:
-
Add a content block
In the email editor, insert a Paragraph content block where you'd like the RSS content to appear. -
Insert RSS code
Copy and paste the RSS code template into your content block. -
Replace placeholder URL
ReplaceyourRSSwebsiteURL
in the code with your actual RSS feed URL. -
Preview and test
After inserting your RSS feed, preview the email before sending. You can also send yourself a test email to confirm the content appears as expected.
đź’ˇ Note: The RSS content will display when exiting the email designer or in the test email preview.
RSS Code Syntax and Explanation
-
RSS content begins with:
[RSS=yourRSSwebsiteURL]
-
RSS content ends with:
[ENDRSS]
Inside the RSS section, each item in the feed is referenced using an index:
-
[RSS-0-*]
refers to the most recent item -
[RSS-1-*]
refers to the second most recent item, and so on
You can include the following elements from your feed.
Tag | Description |
---|---|
[RSS-0-title] |
Title of the article |
[RSS-0-description] |
Summary or preview text |
[RSS-0-link] |
Direct link to the article |
[RSS-0-dc:creator] |
Author of the article |
[RSS-0-pubDate] |
Date of publication |
[RSS-0-media:content] or [RSS-0-media:content-attributes:url]
|
Image from the article |
[RSS-0-media:credit] |
Image credit |
[RSS-0-media:description] |
Image description |
We use the most common tags, but you should check the code of your own RSS feed to make sure the tags have the correct names.
For example:
<title> becomes [RSS-#-title]
<link> becomes [RSS-#-link]
Styling Your RSS Feed Content
You can customize how RSS content appears in your email:
-
Bold or italicize text using the formatting options in the editor.
-
Match brand colors by adjusting text and link colors.
-
To highlight titles, use a Title content block to increase font size and weight.
-
To add an image, use an Image content block, select Dynamic image, and insert this code into the field:
[RSS-0-media:content-attributes:url]
Example: Embed the 3 Most Recent Articles
You can copy and paste the following code to use as a simple template to display your RSS:
[RSS=yourRSSwebsiteURL]
[RSS-0-title]
[RSS-0-description]
[RSS-0-link]
[RSS-0-media:content:url]
[RSS-1-title]
[RSS-1-description]
[RSS-1-link]
[RSS-2-title]
[RSS-2-description]
[RSS-2-link]
[ENDRSS]
Replace yourRSSwebsiteURL
with your actual feed URL (e.g., https://rss.nytimes.com/services/xml/rss/nyt/World.xml).
Understanding RSS Tags (With Example)
Here’s a sample RSS from the New York Times RSS feed:
You would use the following code:
Comments
0 comments
Please sign in to leave a comment.