Skip to content
Rails wrapper for the premailer gem
Pull request Compare This branch is 1 commit ahead, 255 commits behind fphilipe:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Premailer Rails 3 README

This gem is a no config solution for the wonderful Premailer gem to be used with Rails 3. It uses interceptors which were introduced in Rails 3 and tweaks all mails which receive the deliver method and adds a plain text part to it and inlines all CSS rules into the HTML part.

Currently it ignores any stylesheets linked within the email in favour of applying the stylesheet found at public/stylesheets/email.css or, if you use SASS on Heroku with Hassle, at tmp/hassle/stylesheets/email.css.


Simply add the gem to your Gemfile in your Rails project:

gem 'premailer-rails3'
Something went wrong with that request. Please try again.