Module: InlineStyle::Mail

Defined in:
lib/inline-style/mail-interceptor.rb

Overview

A interceptor for mail (github.com/mikel/mail) to automatically inline the styles of outgoing e-mails. To use:

Mail.register_interceptor \
  InlineStyle::Mail::Interceptor.new(:stylesheets_path => 'public')

Rails 3’s ActionMailer wraps around the mail and also supports interceptors. Example usage:

ActionMailer::Base.register_interceptor \
  InlineStyle::Mail::Interceptor.new(:stylesheets_path => 'public')

Defined Under Namespace

Classes: Interceptor