It appears the Emogrifier module has been broken for years now. After spending a couple of days on this, a variety of patches that were supposed to fix Emogrifier (which in some cases made things worse) and the client getting antsy I've concluded that I need to look for alternatives.
I'm sure it's fairly complicated, but I just want to add inline CSS classes from a stylesheet before sending. Is there another module, or a way to manually do this? None of my CSS is overly complicated, it's mostly just font sizes and colors. I've already inlined all the css in the actual htmlmail.tpl.php template. Now I just need a way the client can add their own styles to messages via the Drupal admin without having to inline those styles themselves.
Seriously, open to anything. Surely they're are ways to do this with HTMLmail without Emogrifier (I hope at least).
Edit: Also I would remove Emogrifier as a recommended add-on module. It's literally been broken for almost 2 years now.
Comments
Comment #1
asauterChicago commentedI'm an idiot, this patch did fix it: http://drupal.org/node/1336106#comment-6908412 . The problem here was two fold: A. The plugin really wasn't working, and it did need to be patched. B. However, after patching the client's overly protective spam filtering system didn't like all the CSS and quarantined all the emails as spam.
So this morning I got a message that there was "25 emails quarantined. Please confirm the following messages are spam".
So, the patch worked, the plugin works with patch. Overly protective spam filter was the culprit, I apologize.
I would still add to your documentation that the current emogrifer plugin needs a patch to work, so people don't go through the same headaches I did trying to debug the whole thing.
Comment #1.0
asauterChicago commentedRecommend removing Eomgrifier as recommended module