Skip to content

Including RSS in Emails

RSS can be included in an email via several methods:

1) You can drag and drop an RSS widget in to an already made template

2) You can insert an RSS widget into your own HTML

3) You can insert an RSS widget into a custom coded template which use StreamSend's SHTML markup

Below we discuss how to include an RSS widget into your own HTML or into a custom coded template.

RSS Widget 

Widgets can be inserted into emails using syntax as defined below. Our system will detect this markup and convert it to a widget. Once the markup is converted, it can no longer be edited in the HTML, but rather must be edited from within the widget editor, or the original HTML must be reimported. 


Below is the syntax that we look for in HTML emails that you create or in custom coded templates. Note: the "<markup> .... </markup>" section within in the "<rss-widget....> ... </rss-widget>". The markup here is where you tell the RSS widget what information from the feed to display using the RSS Markup SyntaxThe markup MUST BE HTML ESCAPED when inserted into your coded HTML emails or templates. You can easily use an online tool to help you escape that markup
<rss-widget feed-url="" number-of-stories="5" width="100"> <markup> ... html escaped markup here ... </markup> </rss-widget>

You must include "feed-url", "number-of-stories", and specify the "width". 

Example markup that is not HTML escaped: 
<!-- example markup that is HTML escaped -->
    <p>RSS TITLE: <a href="{{url}}" class="rss-details-title-link">{{title}}</a></p>
    <p>SS: Updated At: {{lastUpdatedAt}}</p>

        <p>Image: <a href="{{url}}" target="_blank"><img src="{{firstContentImageURL crop-width="175" crop-height="131"}}" style="width:100%; height:auto;" border="0" /></a></p>
        <p>publishedAt: {{publishedAt}}</p>
        <p>author: {{author}}</p>
        <p>title:  <a href="{{url}}" target="_blank" class="rss-article-title-link">{{title}}</a></p>
        <p>content (200 characters): {{contentText max-chars="200"}}</p>
<!-- // example markup that is HTML escaped -->

Full example in STML:
<rss-widget feed-url="" number-of-stories="5" width="100">
        &lt;!-- example markup that is HTML escaped --&gt;
            &lt;p&gt;RSS TITLE: &lt;a href=&quot;{{url}}&quot; class=&quot;rss-details-title-link&quot;&gt;{{title}}&lt;/a&gt;&lt;/p&gt;
            &lt;p&gt;SS: Updated At: {{lastUpdatedAt}}&lt;/p&gt;
                &lt;p&gt;Image: &lt;a href=&quot;{{url}}&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;{{firstContentImageURL crop-width=&quot;175&quot; crop-height=&quot;131&quot;}}&quot; style=&quot;width:100%; height:auto;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
                &lt;p&gt;publishedAt: {{publishedAt}}&lt;/p&gt;
                &lt;p&gt;author: {{author}}&lt;/p&gt;
                &lt;p&gt;title:  &lt;a href=&quot;{{url}}&quot; target=&quot;_blank&quot; class=&quot;rss-article-title-link&quot;&gt;{{title}}&lt;/a&gt;&lt;/p&gt;
                &lt;p&gt;content (200 characters): {{contentText max-chars=&quot;200&quot;}}&lt;/p&gt;
        &lt;!-- // example markup that is HTML escaped --&gt;

Feedback and Knowledge Base