How to create an RSS campaign
Do you have a blog on your website? Would you like to automatically send a campaign to your subscribers with the posts you publish, so you don't have to do anything?
Since version 2, Mailrelay supports the automatic sending of campaigns from an RSS feed, such as the one generated by WordPress or some web services.
And now, with the Mailrelay V3, we have added more features to this type of email marketing campaign.
Now you can even add an RSS feed from Youtube.
Do you find that interesting?
Let's review this functionality and see the new features available.
ÍNDICE
Free and automatic email marketing for your Wordpress blog
First, let's look at the basic feature.
If you have a Wordpress website, for example, you can get your RSS feed quite easily.
On our website or blog, we have to right click on : View page source code.

If we click on this option, we will see the source code of our website or blog.
Don't worry, we just have to look for the text that indicates RSS:

When you click on the link, it will take you to another page, which is the RSS feed page, you can copy this URL, which is the one you will use in Mailrelay.
In the case of our blog, for example, it is this one:
https://blog.mailrelay.com/en/feed
NOTE: If your site is in maintenance mode, the feed will not be accessible. Also, some plugins generate problems in the feed, so access it manually to make sure everything is working correctly.
Well, normally, the feed will be updated with every new post you publish, and with Mailrelay you can configure the system to send an email with each new article you publish.
Campaigns - RSS Campaigns
The first thing to do is to go to the menu Campaigns>>RSS Campaigns

In this option, we will add a new RSS campaign in +Add and then click on Create campaign:


Well, now we will see some of the main options for sending RSS campaigns. These are the parameters that will define the campaign, so we need to be clear about them. Take a look at the following image:

Let's look at these parameters one by one:
- Subject: The subject line of the campaign, what our contacts will see when the campaign is sent.
- Preview text: a preview text that contacts will see when they receive the campaign.
- Sender: the sender of the campaign.
- Groups or segments: to whom the campaign will be sent.
- URL: the url of the RSS feed
- Number of entries: the number of entries the system should include in each campaign.
- Frequency: how often the campaign will be sent (daily, weekly, even manually).
Let's see what a real example would look like:

With that, we would already have the configuration done, but we have to prepare the campaign, which we will do now.
Important! Showing the post title in the subject line
If you want to show the title of the post directly in the subject line, just write this tag in the subject box:
{{ first_rss_entry.title }}You can mix the tag with other text, for example:
Last entry: :{{ first_rss_entry.title }}This way we can display the title of the entry together with some text to further personalize the subject line.
Preparing an RSS newsletter to send an email marketing campaign
To start preparing the campaign, it can be created using this layout:

The text box that is checked is the one we will use to embed the tags needed for the RSS campaign.
We click and select all the text to delete it:

After deleting it, we will use the Variables drop-down menu:

These variables will allow us to incorporate all the elements necessary for our RSS campaign to work properly.
What we mainly need is a Loop for the RSS entries (at least one is required):

This variable will insert the essential basic structure without which RSS emails can't work.
It works more or less like this:

The starting part {% rss_loop %} and the ending part {% endrss_loop %} should never be removed, although you can put them in several text boxes, the important thing is that the rest of the tags are included between these two.
The other tag {{ rss_entry.title }} is the tag that will be replaced by the title of the entry.


IMPORTANT NOTE: Check your RSS settings. The availability of RSS tags depends directly on the RSS settings of your blog or website. So, if your site's RSS feed doesn't have the summary tag, it will not be displayed. Or, if the summary in your feed includes the full article, it is the article that will be displayed instead of the summary.
Check your feed settings first to understand what is available.
Inserting the link from RSS feeds
We can see that if we insert the URL of the entry in this way:

Using this variable, what we will get at the end is a simple URL, not a link.
What should we do then to create the link correctly?
First, copy or cut the following tag {{ rss_entry.url }}:

After that, type in whatever you want, for example read more, or something like that, and use the link icon:

Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article