I have message text for an html email in a view called 'order_email',
and a corresponding layout called 'email'.

I use:

ob_start();
$this->controller->render('order_email','email');
$mail = ob_get_clean();
return $mail;

The $mail variable now contains the rendered html, which I can include
in the email.

The problem is:

When the user receives the email, although all inline css styling is
applied to the html, none of the styles from the "@import"ed external
stylesheets are applied.

Short of hardocing the contents of the external css stylesheet into
the layout, is there anyway to keep the stylesheet external, yet have
the user see the html with the styles applied?

Is there anyway to get $this->render() to inset in the contents of the
external CSS file in place of the @import link to it?

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to