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 =>
    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!

Want to improve your email marketing? Subscribe to get tips on improving your email marketing delivered to your inbox.

Join 150,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 0800 161 5300