0

我正在处理电子邮件并想在浏览器中显示 html,但我不确定如何处理编码。我想提取 html 以在 html 浏览器中显示它。我计划这样做的方式是在整个电子邮件上使用 html 解析器来解析 html 部分中标签之间的数据。有没有更简单/更有效的方法来做到这一点?

这是文本编码

------=_Part_29856965_540743623.1285814590176 内容类型:文本/纯文本;charset=ISO-8859-1 内容传输编码:7bit

这是html编码

------=_Part_29856965_540743623.1285814590176 内容类型:文本/html;charset=ISO-8859-1 内容传输编码:7bit

4

1 回答 1

0

You can have a look at the ezComponents - Mail component. It has a lot of operations for building and using a MIME

http://ezcomponents.org/docs/tutorials/Mail

于 2010-10-13T18:01:19.603 回答