Live Twitter feed in an email sent a beautifully designed email including live tweets. The best part was they explained how they did this in detail on their blog

I tried to reproduce following Litmus’ post (with lots of help from @KevinThompson) and was able to build an email that also included all tweets using the hashtag #emailgeeks updating the tweets displayed in the email in realtime. This was a quick attempt at testing how this works, but didn’t include a fallback image of the Twitter feed for non-webkit clients.

View mailerbob’s email including a live Twitter feed:

The email is pretty standard. What is worth looking at is the code that makes the Twitter feed possible. @KevinMandeville explained this really well on the mentioned blog post.

The HTML of the email includes a reference to a CSS file.

<link href="" type="text/css" rel="stylesheet" />

This CSS file is regularly updated pulling the latest Tweets using the hashtag #emailgeeks from Twitter through the Twitter API.

Inside of the email HTML the contents of the external CSS file tweets.css is included by using div tags.

  <td align="left" class="mobile" style="font-family: Century Gothic, Arial, sans-serif; font-size:14px; line-height:20px;">
    <div class="tweet" id="tweet-1"> 
      <a href="" target="_blank">
        <div class="tweet-wrapper">
          <span class="copy"></span>

This part only references the text of a tweet. We inserted variations of this code to also pull in the avatar, the Twitter handle and the timestamp of the Tweet (as you can see if you look at the source code of the entire email. All this information is included in the css file tweets.css

The way this is currently built it is not scalable for high volume sending, due to restrictions in place by the Twitter API and also when it comes to serving the .css file. Also it doesn’t produce and host live screenshots of the Twitter feed to use as the fallback image.

Want to try it yourself?

We build a dynamic .css file that you can use to pull down tweets with a #hashtag of your choice.

1.) Use the HTML email hosted at

2.) Replace the word emailgeeks in between / and .css with the hashtag you want to generate a .css file for and include in your email.

<!-- replace this -->
<link href="" type="text/css" rel="stylesheet" />

<!-- with this -->
<link href="" type="text/css" rel="stylesheet" />

<!-- or whatever you want to use as your hashtag -->
<link href="" type="text/css" rel="stylesheet" />

For developers, here is the code that generates the .css file:

which is an iteration of @KevinThompson’s code:

Want to include live twitter feeds in your email and need help? Get in touch