This TextMate bundles allows you to easily bring your CSS styles inline as well as send email right from within TextMate—especially useful when you’re in the middle of testing multiple changes.
Before we get started I’d like to mention that this article is not really for the faint of heart. It’s for TextMate users only, and requires you to install a few 3rd party Ruby gems and be comfortable with opening a Terminal window. If any of this sounds like greek, fret not, this article just isn’t for you ;)
Here’s the basic outline to getting started.
sudo gem install mailfactory
sudo gem install hpricot
sudo gem install tamtam
sudo gem install tlsmail
Before you can use the bundle there is a small amount of configuration you need to do. Primarily, setting up the SMTP server to send email from. Since this will is unique to every person we tried to make this as easy as possible for the majority of users.
You can access the configuration by opening TextMate and going to “Bundles -> Bundle Editor -> Show Bundle Editor” and then choosing the “Email Tester” bundle. The email settings will be similar to those you setup in say, Mail.app or Thunderbird. Change these settings to match your SMTP server. In this screenshot I am using Gmail as an example.
Not all servers use SSL, so make sure to set these options to exactly those of your SMTP server. You shouldn’t need to edit the “to=” variable.
Using the bundle is pretty straight forward, what we did was add 3 commands that can be accessed under “Email Tester”. Here’s what each does, in all 3 commands we extract the contents of the <title> for the subject.
That’s about it! You can assign keyboard shortcuts to each command if you want to make it even easier, but that’s the basics.
Author: Campaign Monitor
Date: January 18, 2012
File Size: 8.7k
With our powerful yet easy-to-use tools, it's never been easier to make an impact with email marketing.Try it for free