FindSoftware

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

Current major version
15
Last release
2022-11-105

Adoption

GitHub stars
1,7641
Contributors
436
Dependent repositories
4,6037
Dependent packages
157

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, Runtime, GitHub stars
    api.github.com/repos/fphilipe/premailer-rails
  2. 2026-11-16: links, Categories, Built on, Install with, License, License model
    github.com/fphilipe/premailer-rails/blob/main/README.md
  3. 2026-11-16: Maintainer
    github.com/fphilipe/premailer-rails/blob/main/LICENSE
  4. 2026-11-16: First release
    api.github.com/repos/fphilipe/premailer-rails/tags
  5. 2026-11-16: Current major version, Last release
    rubygems.org/api/v1/gems/premailer-rails.json
  6. 2026-11-16: Contributors
    api.github.com/repos/fphilipe/premailer-rails/contributors?per_page=1
  7. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/premailer-rails

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON