For those of you using the Email Reader template, it seems to work a lot better if you view the email body as an embed. Otherwise you can get some strange rendering.
What I did was create new new view that only shows the body of the email. No header, footer, sidebar, buttons, or anything. Just the body.
Then on the default view, I embeded that view.
I created a code snippet where I wanted the body of the email to appear.
global $pageObject;
$record = $pageObject->getCurrentRecord();
// print_r($record);
echo '<embed
src="mail_messages_view.php?editid1=' . $record["id"] . '&page=view3"
style="height:600px;width:100%;border:none;overflow:hidden;"></embed>';
I would prefer that the iframe expands to the full height of the body, but I can't seem to find any code that works. If anyone knows of some javascript or other code that would change the height of the iframe to the height of the email body, that code would be helpful to me. Thanks.
In the meantime, this is usable for viewing emails.