burnbright/silverstripe-inlinestylesemail

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

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: 2021-09-24 13:14:59 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