🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
Mailparse是用于解析和处理电子邮件的扩展。它可以处理[»RFC 822](http://www.faqs.org/rfcs/rfc822)和[»RFC 2045](http://www.faqs.org/rfcs/rfc2045)(*MIME*)兼容的消息。 Mailparse基于流,这意味着它不保留其处理的文件的内存副本-因此在处理大消息时非常节省资源。 Mailparse需要[mbstring](https://www.php.net/manual/en/book.mbstring.php)扩展名,并且必须在mbparse之前加载mbstring。 [https://pecl.php.net/package/mailparse](https://pecl.php.net/package/mailparse) * [mailparse\_determine\_best\_xfer\_encoding](https://www.php.net/manual/en/function.mailparse-determine-best-xfer-encoding.php)—获得最佳编码方式 * [mailparse\_msg\_create](https://www.php.net/manual/en/function.mailparse-msg-create.php)—创建一个mime邮件资源 * [mailparse\_msg\_extract\_part\_file](https://www.php.net/manual/en/function.mailparse-msg-extract-part-file.php)—提取/解码消息部分 * [mailparse\_msg\_extract\_part](https://www.php.net/manual/en/function.mailparse-msg-extract-part.php)—提取/解码消息部分 * [mailparse\_msg\_extract\_whole\_part\_file](https://www.php.net/manual/en/function.mailparse-msg-extract-whole-part-file.php)—提取包含标头的消息部分,而不对传输编码进行解码 * [mailparse\_msg\_free](https://www.php.net/manual/en/function.mailparse-msg-free.php)—释放MIME资源 * [mailparse\_msg\_get\_part\_data](https://www.php.net/manual/en/function.mailparse-msg-get-part-data.php)—返回有关消息的信息的关联数组 * [mailparse\_msg\_get\_part](https://www.php.net/manual/en/function.mailparse-msg-get-part.php)—返回[mimemessage](https://www.php.net/manual/en/function.mailparse-msg-get-part.php)中给定节的句柄 * [mailparse\_msg\_get\_structure](https://www.php.net/manual/en/function.mailparse-msg-get-structure.php)—在提供的消息中返回mime部分名称的数组 * [mailparse\_msg\_parse\_file](https://www.php.net/manual/en/function.mailparse-msg-parse-file.php)—解析文件 * [mailparse\_msg\_parse](https://www.php.net/manual/en/function.mailparse-msg-parse.php)—增量地将数据解析到缓冲区中 * [mailparse\_rfc822\_parse\_addresses](https://www.php.net/manual/en/function.mailparse-rfc822-parse-addresses.php)—解析符合RFC 822的地址 * [mailparse\_stream\_encode](https://www.php.net/manual/en/function.mailparse-stream-encode.php)—从源文件指针流数据,应用编码并写入destfp * [mailparse\_uudecode\_all](https://www.php.net/manual/en/function.mailparse-uudecode-all.php)—扫描来自fp的数据并提取每个嵌入式uuencoded文件