Posted by tchopshop on July 12, 2011 at 8:45pm
3 followers
Jump to:
| Project: | HTML Mail |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | pillarsdotnet |
| Status: | active |
Issue Summary
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
#1
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!
#2
Mimemail comes with its own copy of emogrifier. If you're using mimemail, you should use its "CSS Compressor" rather than the emogrifier module.
#3
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.
#4
I'll roll some new documentation with screenshots when I get a chance.
#5
thank you!
#6
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!