include page dynamically in emailBrowser Info Environment
I'm trying to dynamically include a page in the email that changes daily - cut and paste won't work for this application.
If the email form would support parsing php code, then I'd be In Like Flint. Instead, it appears to strip out anything other than text or HTML (pasted thru the WYSIWYG editor).
I might try embedding some jQuery in the HTML to see if that will work, otherwise, I'll have to hack into your core.
I've worked with other CMSes that would allow you to email an article from the website. That's what I'm trying to achieve.
Thanks for the quick reply.
$c = Page::getByPath( $requestedURL );
$a = new Area( $areaHandle );
$html = ob_get_contents();
FWIW, I code CSS at the tag level for emails, and it's generally well-accepted by most email clients. For example:
<h1 style="font-family:Arial,Helvetica,sans-serif; color:#000">Our First Newsletter<h1>
...rather than trying to pick up the code from an external css file or embedded in the page header.