Two solutions proposed by Dean Edwards and Luiz Angelo De Luca are trying to solve the problem. Both of them are implemented in PHP. Base64Html is a Java implementation of Luiz Angelo De Luca's solution: convert the HTML into MHTML (HTML Mail format).
Luiz Angelo De Luca's solution can be genernalize to the following steps:
- Buffer the output and add a function callback
- If the browser is IE, set the HTTP header to MHTML
- Convert the HTML to MHTML