The email details preview always fed the html body into the iframe, so emails sent with only a text body showed an empty preview. Fall back to the text body, escaped and wrapped in a minimal pre document, and show a placeholder when the email has no content at all.