Mailparse is stream based, which means that it does not keep in-memory copies of the files it processes - so it is very resource efficient when dealing with large messages.
Note: Mailparse requires the mbstring extension.
This extension has been moved to the PECL repository and is no longer bundled with PHP as of PHP 4.2.0.
This PECL extension is not bundled with PHP. Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/mailparse.
In order to use these functions you must compile PHP with mailparse support
by using the
Windows users will enable php_mailparse.dll inside of php.ini in order to use these functions. The DLL for this PECL extension may be downloaded from either the PHP Downloads page or from http://pecl4win.php.net/
The behaviour of these functions is affected by settings in php.ini.
Table 1. Mailparse configuration options