How to create an RSS campaign

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.

Right-click context menu in a browser showing the View page source option

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:

Source code view highlighting the RSS feed URL tag

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

Mailrelay dashboard navigation showing the Campaigns menu and RSS Campaigns option

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

Add button for creating a new RSS campaign in Mailrelay

Create campaign button confirmation interface

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:

RSS campaign settings form displaying fields for subject, sender, feed URL, and frequency

Let's look at these parameters one by one:

  1. Subject: The subject line of the campaign, what our contacts will see when the campaign is sent.
  2. Preview text: a preview text that contacts will see when they receive the campaign.
  3. Sender: the sender of the campaign.
  4. Groups or segments: to whom the campaign will be sent.
  5. URL: the url of the RSS feed
  6. Number of entries: the number of entries the system should include in each campaign.
  7. Frequency: how often the campaign will be sent (daily, weekly, even manually).

Let's see what a real example would look like:

Example configuration of an RSS campaign form populated with data

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:

Mailrelay template editor showing a newsletter layout selection

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:

Selecting default text inside the email template text block for deletion

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

Variables dropdown menu in the Mailrelay email editor toolbar

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):

Selecting the RSS loop option from the Variables dropdown list

This variable will insert the essential basic structure without which RSS emails can't work.

It works more or less like this:

Code block inside editor showing opening and closing RSS loop tags

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.

Inserting entry title variable between RSS loop tags

Preview of title variable within the email editor text box

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.

We can see that if we insert the URL of the entry in this way:

Inserting rss entry URL tag directly into the editor body

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 }}:

Selecting and copying the rss entry url tag text

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

Clicking the hyperlink button in the rich text editor toolbar

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article