Von Mathias Brodala · 22.03.2018
Whenever you develop a TYPO3 website for a client sooner or later the topic mail design will show up. Some of you may now think “So what?” and some of you probably shudder in fear now. We got something for both of you:
CSS inliner for the TYPO3 mailer
There are so many things that rob you a bit of your lifespan if you got the privilege to style mails:
Do you feel stressed now? No? Are you sure?
But don’t despair! At least for the last part we got you covered now thanks to the CSS inliner for the TYPO3 mailer extension.
It does exactly that: all of your style rules defined in a <style> element are automatically embedded in the elements of your mail content. You don’t even have to lift a finger because it does this automatically on the fly for every single outgoing mail. Simply install the extension and forget about it.
The main work is done by the awesome tijsverkoyen/css-to-inline-styles package and our extension brings that to your TYPO3 website.
You can install the new extension easily from Packagist with Composer:
composer require pagemachine/typo3-mail-css-inliner
If you don’t use Composer yet (you really should) you can also find the mail_css_inliner extension in the TYPO3 Extension Repository.