Using our RSS Campaign integration to send your RSS campaigns allows you to automatically send your latest blog posts, news updates, or other content directly to your subscribers' inboxes. By choosing to use our RSS default template, you can make this process even easier as it provides a pre-designed format that you can customize with your own branding and content.
If you're not familiar with how RSS feeds work and how you can share yours with your readers using our RSS Campaign template and integration, we recommend you check our series of 3 articles:
- What is an RSS feed?
- Understanding the format of the RSS default template - YOU ARE HERE
- RSS Campaign integration - Automatically share your blog posts with your subscribers
About the RSS default template
The RSS default template is automatically created when you create an RSS Campaigns integration on your account. It is available from the Templates page under the name RSS Default Template - EN [2020 Editor]. The RSS default template allows you to automatically retrieve your blog posts and add them to an email campaign. This means you don't have to manually create a new campaign whenever you want to update your audience about new content on your website.
How is it possible? The RSS default template contains two elements that allow us to dynamically populate the content of your emails with data from your articles: a pre-configured repeatable block with key names (RSS tags).
How is the RSS default template formatted?
To help you understand how the RSS default template is formatted, we created an RSS campaign from the RSS feed of Brevo Blog that we'll compare to the RSS default template and explain how repeatable blocks and key names are used in the template.
Here's an example of what an RSS campaign looks like once it's been sent and populated with the data from an article:
And here's what the original RSS default template looks like in the Drag & Drop Editor:
Key names (RSS tags)
The key names in the default RSS template are placeholders that you can use to retrieve the data of the main elements of your blog posts:
- {{ item.ENCLOSURE }} for the image of the article
- {{ item.TITLE }} for the title of the article
- {{ item.PUBDATE }} for the publication date of the article
- {{ item.DESCRIPTION | safe }} for the description of the article
- {{ item.LINK }} for the URL of the article
Repeatable content
The Repeatable content option allows you to repeat a section in your email and iterate over all content within a single variable. With this option, you can design and format email templates and campaigns that contain variables for a list of items (in our case, the blog articles) that will be replaced dynamically at the time the email is sent.
You don't have to duplicate the section if you want several articles to be displayed. When you enable the Repeatable content option for a section, it will repeat the pattern for as many articles as you'd like. You just need to modify the limit directly from the Repeatable content option.
To learn more about the Repeatable content option, check our dedicated article Repeat a block of items in your emails.
How to customize the RSS default template?
Customize the design of your email template
Before using the RSS default template in your RSS Campaigns integration, you should customize it with your own branding by adding your logo, colors, fonts, etc., using our Drag & Drop Editor.
[Advanced] Customize the key names in your email template
Key names are placeholders that you can use in your email template to retrieve data about your website and blog posts. They are created based on the name of the tags in your RSS feed.
In the email body, a key name is used within spaces and double curly braces. It is made of two parts:
- The first part is either "feed" or "item":
- Use "feed" for RSS tags used inside the <channel> tag, e.g. {{ feed.PUBDATE }}.
- Use "item" for RSS tags used inside the <item> tag, e.g. {{ item.TITLE }}.
- The second part is the name of your RSS tag.
For example, to retrieve the data inside the <title> RSS tag used inside the <item> tag, we use the {{ item.TITLE }} placeholder.
Advanced configuration for key names
- To prevent any unwanted HTML tags from showing up in your email, you need to add the "safe" filter to your key name in the following way: {{ item.DESCRIPTION | safe }}. To learn more about filters, check our dedicated article Modify the formatting of your placeholders with filters.
- Do not use any location timezone filter, such as time_in_location, with the {{ item.PUBDATE }} key name. To learn more about filters, check our dedicated article Modify the formatting of your placeholders with filters.
- Usually, images are included inside the <content:encoded> RSS tag. If your images are not showing with the {{ item.DESCRIPTION | safe }} key name, you can change it to {{ item.CONTENT_ENCODED }}.
⏩ What's next?
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.
If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.