RSS Image appearing outside of table cell

Hi all,

I have been working on adding some RSS functionality into our email template and am trying to add the <rssimage> tag. Here is my code inside a table cell:

<table width="165" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><rssimage width="150"></rssimage></td>
</tr>
</table>
<span class="mainBody"><rssbody paragraphs="1"></rssbody>
</span>

This seems to work fine but the image itself doesn't get placed inside the table cell, it gets put outside the table completely. Here is the code from the final email:

<table width="150" cellspacing="0" cellpadding="0" border="0" align="left" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;">
<tbody><tr>
 <td style="padding-right:15px;border-collapse:collapse;"></td>
</tr>
</tbody></table>
<span style="font-family:Arial, Helvetica, sans-serif;font-size:14px;line-height:20px;color:#323232;" class="mainBody"><p style="margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"><img width="100" height="100" src="https://img.createsend1.com:443/feedimageproxy/image/58D2DC92DA0408/1A22F3A8D993C9?imageUrl=http%3a%2f%2fsites.ivey.ca%2ffiles%2f2012%2f07%2fHBA12_RingTradition_Pic1_resized100X100.jpg" class="alignnone size-full wp-image-3770 bio-img-wrap-left" alt="Photo: HBA graduates show their Ivey rings bio-img-wrap-left">After pledging to commit to business ethics at the <a style="color:#305746;text-decoration:underline;" target="_blank" href="http://marketing.createsend1.com/t/r-l-iyuyjjy-l-d/">HBA Awards and Ring Ceremony</a> 
at the London Convention Centre on June 19, 325 HBA graduates were welcomed into the <a style="color:#305746;text-decoration:underline;" target="_blank" href="http://marketing.createsend1.com/t/r-l-iyuyjjy-l-h/">Ivey alumni network </a>.</p>
 </span>

Has anyone else had this problem? Am I doing something wrong?

Any help would be appreciated!

Thanks!

Chris

roshodgekiss roshodgekiss, 4 years ago

Hey there Chris, this is really curious - it looks like <rssimage> is being ignored. Just to double-check, are these tags surrounded by a <datarepeater>?

If it's not a matter of having <datarepeater> missing, would it be possible for you to kindly contact our team with your campaign details and a link to the site the RSS feed is on? Thanks, Chris! We're keen to find out what's happening here.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Mindsplit, 4 years ago

Hi Ros,

Thanks for the reply. The <rssimage> IS surrounded by a <datarepeater> tag. Here is the full code:

<datarepeater type="rss">
              <table width="478" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left" class="subtitle"><rssitemlink>
                    <strong><rsstitle></rsstitle></strong></rssitemlink></td>
                  </tr>
                <tr>
                  <td align="left" class="unsubscribe" style="padding-left: 20px;">Posted by <rssauthor></rssauthor> on  <rssitemmonth></rssitemmonth>/<rssitemday></rssitemday>/<rssitemyear></rssitemyear></td>
                </tr>
                <tr>
                  <td align="left" style="padding: 8px 0 0 20px;">
                  <table width="165" border="0" align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="left"><rssimage width="150"></rssimage></td>
                                          </tr>
                                    </table>
                          <span class="mainBody"><rssbody paragraphs="1"></rssbody>
                          </span></td>
                </tr>
                <tr>
                  <td style="padding-top: 8px;">
                  <table width="478" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="25"><img src="images/spacer.gif" width="25" height="10" /></td>
                  <td width="15" align="left" valign="top"><img src="images/green-arrow.gif" width="7" height="14" style="display: block;" /></td>
                  <td width="418" align="left" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; color: #323232;"><rssitemlink>Read full story</rssitemlink></td>
                  </tr>
              </table>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
              </datarepeater>

If you can find something that is wrong with this code let me know. I will contact you guys separately as well.

Thanks!

Chris

roshodgekiss roshodgekiss, 4 years ago

Thanks Chris, we have your email to support and will be responding shortly. Sorry about the wait!


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
Stephen, 4 years ago

Hey Chris,

Thanks for sending this through and I think the issue here at present is just that the image in your campaign is being pulled into your <rssbody paragraphs="1"> tag, which is sat outside of your table, as per below:

<table width="165" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><rssimage width="150"></rssimage></td>
</tr>
</table>

<span class="mainBody"><rssbody paragraphs="1"></rssbody></span>  <---- the image is being pulled in here.


Just to clarify, for us to be able to pull an image into the <rssimage /> tag in your campaign / template, the image needs to be contained within an <enclosure> tag within your RSS feed. Please see more on this below:
http://www.campaignmonitor.com/create/r … #rss-image
http://en.wikipedia.org/wiki/RSS_enclosure

So if your image is not in an <enclosure> tag, it won't be pulled into your <rssimage> tag as a result I'm afraid, so you may just wish to update your RSS feed to include this, and then your images should be pulled in correctly going forward as a result.

Thanks a lot and I hope that helps.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098