premailer-rails
Ruby gem that adapts the premailer CSS inliner to ActionMailer, so linked stylesheets are inlined into HTML emails when they are delivered.
premailer-rails is a Ruby gem that inlines CSS into the HTML emails an application sends with ActionMailer. It is an adapter for premailer: the gem registers a delivery hook, so every delivered email is processed, and the stylesheets it links are applied to matching elements through their style attribute. The README says it also works without Rails, for example with sinatra.
Worth knowing
Linked stylesheets are read from a file under the public/ folder, through the Rails asset pipeline, or over the network, in an order that can be configured.
Identity
- Status
- Stub
- Maintainer
- Philipe Fatio3
- Maintained by
- Individual
- First release
- 20114
Rendering and deploy
- Install with
- gem2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, Runtime, GitHub stars
api.github.com/repos/fphilipe/premailer-rails - 2026-11-16: links, Categories, Built on, Install with, License, License model
github.com/fphilipe/premailer-rails/blob/main/README.md - 2026-11-16: Maintainer
github.com/fphilipe/premailer-rails/blob/main/LICENSE - 2026-11-16: First release
api.github.com/repos/fphilipe/premailer-rails/tags - 2026-11-16: Current major version, Last release
rubygems.org/api/v1/gems/premailer-rails.json - 2026-11-16: Contributors
api.github.com/repos/fphilipe/premailer-rails/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/premailer-rails