Mailparse is an extension for parsing and working with email messages. It can deal with » RFC 822 and » RFC 2045 (MIME) compliant messages.
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, and mbstring must be loaded before mailparse.
This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 4.2.0.
Denne » PECL udvidelse medfølger ikke i PHP. Uddybende information så som nye udgivelser, downloads, kildekoder, vedligeholder information samt en CHANGELOG, kan findes her: » http://pecl.php.net/package/mailparse.
In order to use these functions you must compile PHP with mailparse support by using the --enable-mailparse configure option.
Windows users will enable php_mailparse.dll inside of php.ini in order to use these functions. Du kan hente denne PECL udvidelse DLL fra » PHP Downloads siden eller på » http://snaps.php.net/.
Virkemåden af disse funktioner er berørt af indstillinger i php.ini.
Name | Default | Changeable | Changelog |
---|---|---|---|
mailparse.def_charset | "us-ascii" | PHP_INI_ALL | Available since PHP 4.1.0. Removed in PHP 4.2.0. |
Konstanterne nedenunder er defineret af denne udvidelse, og vil kun være tilgængelige når denne udvidelse enten er blevet kompileret ind i PHP eller dynamisk indsat under runtime.