【发布时间】:2011-12-13 11:56:01
【问题描述】:
作为来源,我有由原始电子邮件组成的变量,带有标题和正文:
From: Guy <mail>
Subject: Stuff
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
X-etc: etc etc etc
This is the raw body.
(body in some cases also contains quoted printable encoding, attachments, base64, etc etc)
我重复一遍:我将其作为变量中的文本,如果没有,我将使用 imap_fetchbody(需要远程邮箱才能工作,无法获取原始输入)
我也发现了这个库,貌似挺全的:http://pear.php.net/package/Mail_mimeDecode
我可以使用的最好的课程是什么?
【问题讨论】:
-
你可能已经找到了。