Home Resources Blog

Part of creating the 33 new HTML templates for Campaign Monitor and MailBuild was to also come up with an easy way to test these designs without having to leave the comfort of my development environment. Since most email clients render HTML email better with inline CSS, maintaining an organized yet easy to update template becomes next to impossible (especially when building 33 of them).

It just so happens that TextMate has an incredibly useful plugin architecture called “bundles” that could deal with this problem rather easily. Here’s a quick demo with the details below.

So what we did was create a bundle that does exactly that. Create your email like you would any other webpage with a linked stylesheet or inline style. Run one of the bundle commands and it automatically runs through adding all of the CSS styles inline keeping it easy for you to update. Even better, you can email an HTML multipart email directly from within TextMate! Testing has never been this easy.

If all of this sounds too good to be true, hop on over to our TextMate bundle resource page. Be warned in advance though, this is definitely one of the most developer targeted resources we’ve ever thrown up. And of course, if you haven’t got access to lots of different email clients, our design and spam test tool can run it through more than 20 of the most popular clients with a single click.

  • Juanzo

    It would be wonderful for people without Mac to be able to use this kind of stuff on Notepad++. Do you happen to know if there is an equivalent feature?

  • Benjamin Quorning

    There is a bug in “Email page to ___ (bring CSS inline)”, email.rb line 35 should read:
    inlined = TamTam.inline(:document => File.read(tmp))
    instead of
    inlined = TamTam.inline(:document => tmp)
    In the same file, I have deleted line 31, as the variable “inlinestyle” is not needed.

    Otherwise, thanks for a great tool :-)

  • Jim Barraud

    This is great. Could have totally used this two nights ago ;)

    Are there any plans to add the ability to do local previews of templates with the Campaign Monitor template tags added to the templates?

  • Wolf

    Tested and approved. You guys are to e-mail template development what the WASP was to web standards!

  • Stephen

    i’m getting this when i choose “generate new doc with inline css”

    /Library/Ruby/Gems/1.8/gems/tamtam-0.0.3/lib/tamtam.rb:73:in `parse’: Trouble on style: –>} (InvalidStyleException)
    from /Library/Ruby/Gems/1.8/gems/tamtam-0.0.3/lib/tamtam.rb:21:in `inline’
    from /Library/Ruby/Gems/1.8/gems/tamtam-0.0.3/lib/tamtam.rb:20:in `each’
    from /Library/Ruby/Gems/1.8/gems/tamtam-0.0.3/lib/tamtam.rb:20:in `inline’
    from /tmp/temp_textmate.TaUsMn:12

    can anyone help me out?

  • Brent Lagerman

    the link your resources page is broken, please fix, I’d love to get this bundle!


  • Brent Lagerman
  • David Greiner

    Great spotting Brent, just fixed the link. Thanks!

This blog provides general information and discussion about email marketing and related subjects. The content provided in this blog ("Content”), should not be construed as and is not intended to constitute financial, legal or tax advice. You should seek the advice of professionals prior to acting upon any information contained in the Content. All Content is provided strictly “as is” and we make no warranty or representation of any kind regarding the Content.
Straight to your inbox

Get the best email and digital marketing content delivered.

Join 250,000 in-the-know marketers and get the latest marketing tips, tactics, and news right in your inbox.


See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free