FindSoftware

Premailer

Ruby gem that makes CSS inline in HTML email, converts links and warns about CSS that email clients do not support.

Premailer is a Ruby gem that prepares HTML email for delivery. Its documentation says that CSS should be inline in HTML email, and the gem moves CSS styles into inline style attributes. It also converts relative paths to absolute ones, checks CSS properties against what email clients support, and can write a plain text version of the HTML. A Ruby application passes it a URL or an HTML string and gets back the HTML with inline styles.

Worth knowing

Remote stylesheets that resolve to loopback or private addresses are dropped unless the caller allows local network access. CSS variables stay as variable calls in the output, and a separate build step is needed to replace them with their values.

Identity

Status
Active
Maintainer
Alex Dunae3
First release
20094

Rendering and deploy

Install with
gem6

Releases

Current major version
17
Last release
2026-11-017

Adoption

GitHub stars
2,4162
Contributors
1028
Dependent repositories
5,0799
Dependent packages
519

Why these figures do not compare

Sources

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

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