简体   繁体   English

使用imap(PHP)时无法解码gmail html消息

[英]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.

相关问题 如何仅通过PHP获取imap回复消息? - How can I fetch imap reply message only through PHP? 如何使用php和imap获取Gmail邮件正文 - How to fetch the gmail message body with php and imap 使用imap通过php打开电子邮件,给我此错误消息:imap_open()[function.imap-open]:无法打开流{imap.gmail.com:993/imap/ssl}收件箱 - open email by php using imap giving me this error Message: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX PHP IMAP-在gmail中获取消息ID - PHP IMAP - Get Message ID in gmail 如何使用条件 OR 通过 imap_search 搜索电子邮件 - PHP IMAP 库 - How can I use the Conditional OR to search emails with imap_search - PHP IMAP library 我无法使用PHP,MySQL将消息发送给我的客户端 - I can't send the message to my client in use PHP、MySQL 使用此PHP邮件功能时,为什么我的gmail或yahoo电子邮件帐户没有收到邮件 - Why isn't my gmail or yahoo email accounts receiving mail when I use this PHP mail function PHP-更改语言时html_entity_decode不起作用 - PHP - html_entity_decode is not working when I change language 如何使用PHP imap将电子邮件从一个文件夹移动到另一个文件夹 - How can I move an email message from one folder to another using PHP imap IMAP:PHP:如何获取和存储用于删除特定邮件的邮件号 - IMAP : PHP : How can I get and store message number for deleting a particular mail
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM