MailChimp does have a campaign type called RSS-to-email. This type of campaign allows you to schedule automatic campaigns to go out with your blog posts each time you post. If you want to include a blog post in a regular campaign, or an A/B split campaign, we can help you do that as well through the use of our *|FEED|* merge tag.

This tag will also allow you to post multiple feeds within one campaign of any type, whether it's a regular campaign or an RSS-to-email campaign.

This is the FEED tag shown in the most complicated format. To enter a blog post into your content, copy over this tag and paste it into your campaign on the Design step of the Campaign Builder like you would any ol' text. You can add in any other content or images around the tags as well.

*|FEED:http://www.mailchimp.com/blog/feed/ [$count=2,]|*
place the feed merge tag into your content

  • The URL, in this case: http://www.mailchimp.com/blog/feed/, is the URL for your RSS feed.
  • The variable $count=2 is how many blog posts you want to show in your campaign. Just replace the number 2 with the number of posts you'd like to show.
  • The variable $content=full notes that you want to show the full blog post. You can leave out this variable if you just want to show a short excerpt or summary of your RSS item.
  • The variable $content=titles will show the titles of your RSS items as a link and nothing more.

In this example, we're using the tag *|FEED:http://www.mailchimp.com/blog/feed/ [$count=2]|* with notes, we just want to show excerpts from two blog posts from the MailChimp blog.
what we'll send in the campaign

With this tag, you can include posts from multiple blogs. Just use a separate *|FEED|* tag for each URL you want to pull in content from.

Customizing Your Feed

If you want more control over what content shows up in your campaign, we let you decide which elements of your RSS feed to show on your campaigns.

*|FEEDBLOCK:URL|* and *|END:FEEDBLOCK|*

First you'll need to create the beginning and ending flags for each RSS feed. The stuff between gets replicated for each post in the feed. So if you want to use individual FEED:ITEM merge tags, use

*|FEEDBLOCK:URL|* *|FEEDITEMS:|* and *|END:FEEDITEMS|* *|END:FEEDBLOCK|*

as your open and close tags surrounding the following items you want to include.

So, the text in your campaign will look something like this:

*|FEEDBLOCK:http://blog.mailchimp.com/feed|*
*|FEEDITEMS:[$count=2]|*
*|FEEDITEM:TITLE|*
*|FEEDITEM:DATE|*
*|FEEDITEM:AUTHOR|*

*|FEEDITEM:CONTENT_TEXT|*
*|END:FEEDITEMS|*
*|END:FEEDBLOCK|*

In the tag *|FEEDBLOCK:URL|*, replace "URL" with your RSS feed's URL.
For the items open tag, use *|FEEDITEMS:[$count=X]|* to limit the number of posts that show on your campaign. The default is 5.

Available Tags and Their Use

Feed Specific

*|FEED:TITLE|*
The title of the RSS feed
*|FEED:DATE|*
The publish date of the feed
*|FEED:URL|*
The URL for the feed as a whole, if provided
*|FEED:DESCRIPTION|*
The feed description, if provided
*|FEED:POSTS|*
Displays the posts on your RSS feed. The default number of posts is 5.
*|FEED:POSTS[$count=3,$content=full]|*
Limits the number of posts on your RSS feed

Item Specific

*|FEEDITEM:TITLE|*
The title of the RSS item
*|FEEDITEM:URL|*
The URL for the RSS item
*|FEEDITEM:DATE|*
The publish date of the RSS item. This tag allows you to include date formatting options, which are available at php.net.
*|FEEDITEM:AUTHOR|*
The name of the author for the RSS item, if provided
*|FEEDITEM:COMMENTS_URL|*
The URL for comments on your post, if provided
*|FEEDITEM:CATEGORIES|*
A comma-separated list of the categories (tags and "posted in") for the RSS item.
*|FEEDITEM:CONTENT|*
A short summary of the RSS item content in HTML format
*|FEEDITEM:CONTENT_FULL|*
The full content for the RSS item in HTML format, if provided
*|FEEDITEM:CONTENT_TEXT|*
A short summary of the RSS item content in plain-text format
*|FEEDITEM:CONTENT_FULL_TEXT|*
The full content for the RSS item in plain-text format, if provided
*|FEEDITEM:IMAGE|*
Lets you pull in images from your RSS feed.
*|FEEDITEM:ENCLOSURE|*
A link to any attached file (like a podcast) with an icon, file name, and file size
*|FEEDITEM:ENCLOSURE_URL|*
The URL for any attached file (like a podcast)
*|FEEDITEM:SOURCE|*
A link to the external "source" of this item, if one is provided
This tag will just type out your URL, it will not automatically create a link. If you want the source to be displayed as a link you'll need to create a link in your campaign. When you set up your link, set your protocol to "other" and place the merge tag in the "URL" field.
*|FEEDITEM:SOURCE_TITLE|*
The title of your source URL.
*|FEEDITEM:LIKE|*
Adds a Like button for the particular RSS item.
*|FEEDITEM:TWITTER|*
Adds a Tweet button for the particular RSS item.
*|FEEDITEM:TUMBLR|*
Adds a Tumblr Button for a particular feed item.
*|FEEDITEM:PLUSONE|*
Adds a Google +1 button for a particular feed item.
*|FEEDITEM:INSTAPAPER|*
Adds a "Read Later" button for a particular feed item which directs subscribers to Instapaper's website to save the URL for the feed item.

This feature is available to users with Author level or higher permissions. Take a look at this article to learn more about the different access levels for a MailChimp account.


Related Articles