burnbright/silverstripe-inlinestylesemail

Copies CSS styles to inline style tags. Makes designing emails a bit easier.

dev-master 2014-11-07 02:31 UTC

This package is auto-updated.

Last update: 2024-11-24 20:10:35 UTC


README

Convert stylesheets to inline styles with this SilverStripe module

Usage

Here are a few ways to inline style html:

  1. Arbitrary HTML

    $html = InlineStyler::convert($html);

  2. Some emails

    $email = new InlineStyledEmail();

  3. All emails

    Email::set_mailer(new InlineStylesMailer());

Research