如何用imap_fetchbody忽略attatched图像?

时间:2013-04-24 13:26:55

标签: php format imap email-attachments

我正在使用带有imap_fetchbody函数的PHP脚本来读取电子邮件帐户,但是当我收到附有图像的邮件时,整个邮件都会变脏。我怎样才能获得文本部分? 我会感激任何帮助。

1 个答案:

答案 0 :(得分:0)

你可以使用fetchstructure。

http://www.php.net/manual/en/function.imap-fetchstructure.php

在文档下面的评论中有几个非常有用的例子。

相关问题