# premailer-rails3
[](http://travis-ci.org/fphilipe/premailer-rails3) [](https://codeclimate.com/github/fphilipe/premailer-rails3)
This gem is a no config solution for the wonderful
[Premailer gem](https://github.com/alexdunae/premailer) to be used with Rails 3.
It uses interceptors which were introduced in Rails 3 and tweaks all mails which
are `deliver`ed and adds a plain text part to them and inlines all CSS rules
into the HTML part.
By default it inlines all the CSS files that are linked to in the HTML:
```html
```
Don't worry about the host in the CSS URL since this will be ignored.
If no CSS file is linked to in the HTML and no inline `