innoweb/silverstripe-symfony-mailer-emogrifier

Easily integrate Emogrifier into SilverStripe and send Emails with inlined CSS automatically.

2.0.0 2025-09-19 00:57 UTC

This package is auto-updated.

Last update: 2025-09-19 00:58:14 UTC


README

Version License

Overview

Easily integrate Emogrifier into Silverstripe and send Emails with inlined CSS automatically.

This is based on bummzack/silverstripe-emogrify, integrating Emogrifier with Symfony Mailer.

Requirements

Installation

Install the module using composer:

composer require innoweb/silverstripe-symfony-mailer-emogrifier dev-master

Then run dev/build.

Configuration

By default, the plugin will inline CSS that is part of the HTML, eg. styles defined in <style> tags.

You can also supply a global css file via config:

Innoweb\SymfonyMailerEmogrifier\Extensions\MailerSubscriberExtension:
  css_file: 'public/_resources/themes/yourtheme/css/email.css'

Please note that if the path to the CSS file is not absolute, it will be considered to be relative to the BASE_PATH!

License

BSD 3-Clause License, see License