innoweb / silverstripe-symfony-mailer-emogrifier
Easily integrate Emogrifier into SilverStripe and send Emails with inlined CSS automatically.
Installs: 2 640
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
This package is auto-updated.
Last update: 2025-09-19 00:58:14 UTC
README
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
- Silverstripe Framework ^6
- Emogrifier ^8
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