Hi, I'm trying to get this to work, but it's not finding either my stylesheet or my rules. Also how exactly do I target the selectors, since many of my styles descend from a body tag that wouldn't be applicable to an email, but they work on the html page that the email comes from. I'm using Simplenews, by the way. MimeMail uses mail.css -- is there a way I can have a separate stylesheet, so that I don't have to make the rules so specific to just target that page and not all the pages on my site?

Comments

tchopshop’s picture

Do I need to use Echo to be able to access a stylesheet to turn into an inline style?

I also don't understand how to troubleshoot whether emogrifier is working... I looked at the raw Source of the emails and see nothing related to emogrifier. I have the debug for HTML mail turned on, nothing there.

Please help!

pillarsdotnet’s picture

Mimemail comes with its own copy of emogrifier. If you're using mimemail, you should use its "CSS Compressor" rather than the emogrifier module.

tchopshop’s picture

When I wrote this I was trying to use HTML mail, not Mime mail. I have since switched back to Mime Mail because I couldn't get Emogrifier to work, or I couldn't figure out how to get it to work.

pillarsdotnet’s picture

Project: Emogrifier » HTML Mail
Version: 6.x-1.17 » 6.x-2.x-dev
Assigned: Unassigned » pillarsdotnet
Category: support » task

I'll roll some new documentation with screenshots when I get a chance.

tchopshop’s picture

thank you!

voege’s picture

hey there.... i have the same problem .... i don't know, where i define css style rules. when i activate the emogrifier filter, there is no style definition in the mail source code. i also use <html><head><style>... in the htmlmail-simplenews.tpl.php file. is that right? what is the right way?

i use drupal 6.x
HTML Mail 6.x-2.61
Mail MIME 6.x-2.15
Mail System 6.x-2.30
Simplenews 6.x-1.3
Emogrifier 6.x-1.17

please help!

salvis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)