Closed (outdated)
Project:
HTML Mail
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 Jul 2011 at 20:45 UTC
Updated:
29 Sep 2020 at 20:23 UTC
Jump to comment: Most recent
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
Comment #1
tchopshop commentedDo 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!
Comment #2
pillarsdotnet commentedMimemail comes with its own copy of emogrifier. If you're using mimemail, you should use its "CSS Compressor" rather than the emogrifier module.
Comment #3
tchopshop commentedWhen 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.
Comment #4
pillarsdotnet commentedI'll roll some new documentation with screenshots when I get a chance.
Comment #5
tchopshop commentedthank you!
Comment #6
voege commentedhey 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!
Comment #7
salvis