HTML email is a complex beast. The decision about what to send (as the sender) and what to display (as the recipient) is difficult and potentially dangerous.
On the recipient side, we have webmail , and we have regular email clients . For my purposes, I believe that “webmail” is all that HTML email displays as part of something that HTML itself is, and regular email clients are all that HTML email displays in a different context (for example, OS- and software GUI).
What should I do with HTML email messages ( <head> , <title> , <meta> , ...) in an email?
Is there a specification somewhere, be it the actual standard or the de facto standard?
My motivation for the request is that we use HTML Purifier to sanitize our HTML code and, if its Core.CollectErrors reports changes in the reports. This "message" is necessary ... and disappointing. We highlight some of the reported errors as not significant for our purposes, but the HTML headers mark a massive hurdle:
Someone could potentially use <link> in their email, which we would share. (HTML cleaner is for HTML snippets, not for full documents)
The desire to use things like <link> in HTML emails certainly seems to exist , and there are many email clients that send <meta> -tags in an HTML header (such as Outlook), but how are things handled in the wild? Is it safe to divulge them (which for our purposes means “inextricable change”) and carry proverbial guilt on the sending side if it breaks? It is reasonable? Has anyone ever solved this in one way or another? My google-fu is weak .:(
source share