Uses the emogrifier class library as an input filter to convert stylesheet rules to inline style attributes. This ensures proper display on email and mobile device readers that lack stylesheet support.
Ensure that the PHP Document Object Model extension is available. Emogrifier requires the dom extension and will not work without it.
Download, install, and enable the Libraries module.
Create a library directory for the Emogrifier library in one of the following locations:
- sites/all/libraries/emogrifier (recommended)
DOMAIN is your website domain name, and PROFILE is the installation profile you selected when installing Drupal.
Download the emogrifier.php and place it within the library directory you just created.
Visit admin/settings/filters or click on
Administer >> Site configuration >> Input formats
to set up a new input format or add Emogrifier filtering to an existing format.