Convert stylesheets to inline styles with this SilverStripe module
Here are a few ways to inline style html:
-
Arbitrary HTML
$html = InlineStyler::convert($html);
-
Some emails
$email = new InlineStyledEmail();
-
All emails
Email::set_mailer(new InlineStylesMailer());