[英]I can't decode gmail html message when i use imap (PHP)
Im a newebie developer, i use imap with gmail on my own PHP application . 我是一名新手开发人员,我在自己的PHP应用程序上将imap和gmail一起使用 。
The problem, when i try to decode a gmail html message (Specially google+/linkedin). 问题是,当我尝试解码gmail html消息时 (特别是google + / linkedin)。 It is displayed in an original (coded) format. 它以原始(编码)格式显示。 I want to display it in standard format as it is displayed on GMAIL. 我想以标准格式显示它,因为它显示在GMAIL上。
For Example : 例如 :
Original Message on GMAIL : Image (click here) GMAIL上的原始消息: 图片(单击此处)
Message on my application : Image (Click here) 在我的应用程序上的消息: 图片(单击此处)
Best Regards, 最好的祝福,
That looks like base64 encoding. 看起来像base64编码。 So decode it! 所以解码吧!
$hopefullyTheHtml = base64_decode($string);
http://php.net/manual/en/function.base64-decode.php http://php.net/manual/en/function.base64-decode.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.