Your "site" css is probably not very suited for mail styling. Inline styles are what's most supported but difficult to manage.
I use https://github.com/ndejong/CakephpEmogrifierPlugin to "convert" header <style> formats to inline.
Op dinsdag 14 mei 2013 07:38:50 UTC+2 schreef Jason Ellis het volgende:
In my CakePHP website I have added my css file to app/View/Layouts/default.ctp--
$this->Html->css('myapp');
I use this to add colors to rows in tables on my website.
I have a controller which sends a weekly email to staff with the contents of a table on my website.
My problem is the table in the email does not have colors. Is there any way I can have my CSS applied to my CakeEmail in the same way it is applied to pages on the website?
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment