开发者

How to pull html encoding from email data using PHP

开发者 https://www.devze.com 2023-01-20 07:33 出处:网络
I\'m working with emails and want to display the html in the browser, I\'m not sure how to deal with the encoding.I want to extract the html to display it in the html browser.The way I plan on doing t

I'm working with emails and want to display the html in the browser, I'm not sure how to deal with the encoding. I want to extract the html to display it in the html browser. The way I plan on doing t开发者_StackOverflowhis is using an html parser on the entire email parsing the data inbetween the tags in the html section. Is there an easier/more efficient way to do this?

Here's text encoding

------=_Part_29856965_540743623.1285814590176 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Here's the html encoding

------=_Part_29856965_540743623.1285814590176 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit


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

0

精彩评论

暂无评论...
验证码 换一张
取 消