In the received email message the body starts with <div>.
My template starts with:

<html>
  <head>
    <?php print drupal_get_css($styles); ?>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  </head>
  <body>

This causes a few problems, for one the stylesheet doesn't get included.

Comments

HansKuiters’s picture

Priority: Major » Normal
Status: Active » Closed (works as designed)

Seems the problem lies in Emogrifier module. There is an issue to use only Emogrifier class for rewrites and not the rewrites in Emogrifier module: #1842946: Modify HTML code only by the Emogrifier library. Using the patch in that issue solves this problem for now.