This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.


What does it do?

E-mail clients have a very limited support of CSS. In most cases, they don't support linked stylesheets. Inline stylesheets are often not supported as well. Inline styles are better understood.

This utility, based on Emogrifier ( ), will “automagically transmogrify your HTML by parsing your CSS and inserting your CSS definitions into tags within your HTML based on your CSS selectors”.

It is configured by TypoScript, and is to be applied on pages used to prepare Direct Mails.

Important note : This extension uses the DOMDocument class and requires PHP 5+. The php-xml module has to be included in the php installation.


Not much to show here, obviously, because everything happens under the hood. The pages should look the same with inline styles. Only the code will change.

Example of original HTML code:


#textarea {width:641px;margin-top:10px;margin-left:20px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;}
.csc-header h1 {font:bold 18px Verdana, Arial, Helvetica, sans-serif;color:#006600;}


<div id="textarea">
    <div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">EDITORIAL</h1></div>

Code with inline styles:

<div id="textarea" style="width:641px;margin-top:10px;margin-left:20px;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;">
    <div class="csc-header csc-header-n1">
        <h1 class="csc-firstHeader" style="font:bold 18px Verdana, Arial, Helvetica, sans-serif;color:#006600;">EDITORIAL</h1>