开发者

How to show the content of an email in a webpage?

开发者 https://www.devze.com 2023-01-24 01:07 出处:网络
I\'m workin with PHP imap and Gmail. I want to show the content of an email in a webpage. However when I get the check the code, it has

I'm workin with PHP imap and Gmail. I want to show the content of an email in a webpage. However when I get the check the code, it has -break lines everywhere -"=3D" characters in all the source. Is there a way to get the mail body for a webpage?

Example:

 width: 24px; padding: 0pt;">&#160;</td>               <td style=3D"bord=

er-bo开发者_如何学编程ttom: 1px solid rgb(202, 192, 182);" colspan=3D"4" class=3D"separat= eur_logo">


These =3D are how equal signs (=) are represented if the mail is encoded in quoted-printable style. You might want to read about quoted-printable in order to understand how you have to pase the mail’s source code.

Even better though would be to use one of the available e-mail parsing classes for PHP, since the subject is quite complex.

0

精彩评论

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