php_mailparse.dll for PHP 5.3.x
Eine Version der Seite in Deutsch ist hier verfügbar: php_mailparse.dll für PHP 5.3.x
PHP does no longer provide builds created with Visual Studio C++ 6 (VC6). Since PHP 5.3.6 you need a version of php_mailparse.dll compiled with VC9. This version is available here.
I tried a long time to get a working binary version of the PECL extension (PECL: „PHP Extension Community Library“) mailparse for PHP 5.3.x in the Internet. As that failed, I tried to compile the searched *.dll file by myself. Unfortunately, the attempt took more time than planned. Therefore thanks to Иван Гущин, who compiled the php_mailparse.dll for PHP 5.3.x and wrote a documentation for the compilation in my order. The compiled php_mailparse.dll is published as public download.
Download and Installation of php_mailparse.dll for PHP 5.3.x
The resulting php_mailparse.dll, compiled in VC6 and against the actual PHP 5.3.5 source is publicly downloadable here. php_mailparse.dll can easily been setup as extension in PHP 5.3.x: Simply copy php_mailparse.dll to the subdirectory
/ext of the PHP installation (e.g.
C:\Program Files (x86)\PHP\ext) and activate the extension in the PHP config file (
php.ini, usually found in the PHP installation directory, e.g.
C:\Program Files (x86)\PHP). Up next there is an exemplary extract of a
php.ini with activated mailparse extension:
1;;;;;;;;;;;;;;;;;;;;;; 2; Dynamic Extensions ; 3;;;;;;;;;;;;;;;;;;;;;; 4 5; If you wish to have an extension loaded automatically, use the following 6; syntax: 7; 8; extension=modulename.extension 9; 10; For example, on Windows: 11; 12; extension=msql.dll 13; 14; ... or under UNIX: 15; 16; extension=msql.so 17; 18; ... or with a path: 19; 20; extension=/path/to/extension/msql.so 21; 22; If you only provide the name of the extension, PHP will look for it in its 23; default extension directory. 24; 25; Windows Extensions 26; Note that ODBC support is built in, so no dll is needed for it. 27; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) 28; extension folders as well as the separate PECL DLL download (PHP 5). 29; Be sure to appropriately set the extension_dir directive. 30; 31 32extension=php_mbstring.dll 33extension=php_bz2.dll 34extension=php_curl.dll 35;extension=php_dba.dll 36extension=php_exif.dll 37extension=php_fileinfo.dll 38extension=php_gd2.dll 39extension=php_gettext.dll 40;extension=php_gmp.dll 41;extension=php_intl.dll 42extension=php_imap.dll 43;extension=php_interbase.dll 44;extension=php_ldap.dll 45;extension=php_ming.dll 46;extension=php_mssql.dll 47extension=php_mysql.dll 48extension=php_mysqli.dll 49;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client 50;extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client 51extension=php_openssl.dll 52;extension=php_pdo_firebird.dll 53;extension=php_pdo_mssql.dll 54extension=php_pdo_mysql.dll 55;extension=php_pdo_oci.dll 56;extension=php_pdo_odbc.dll 57extension=php_pdo_pgsql.dll 58;extension=php_pdo_sqlite.dll 59extension=php_pgsql.dll 60;extension=php_phar.dll 61;extension=php_pspell.dll 62;extension=php_shmop.dll 63;extension=php_snmp.dll 64;extension=php_soap.dll 65extension=php_sockets.dll 66;extension=php_sqlite.dll 67;extension=php_sqlite3.dll 68;extension=php_sybase_ct.dll 69extension=php_tidy.dll 70extension=php_xmlrpc.dll 71;extension=php_xsl.dll 72;extension=php_zip.dll 73extension=php_mailparse.dll 74;extension=php_mcrypt.dll 75;extension=php_mhash.dll 76;extension=php_mime_magic.dll
The extension is being activated in line 73.
mailparse requires the PECL extension mbstring (php_mbstring.dll) to be loaded before loading of php_mailparse.dll (see line 32)!
I run on several Windows servers the e-mail ticket system Cerberus Helpdesk. This system uses mailparse to parse in- and outgoing e-mails. Until PHP version 5.2.x the neccessary php_mailparse.dll as binary for Windows systems could be found at the build page of the PHP developer Pierre Joye at this page.
Some time ago, the Windows builds have been discontinued; a long term planned buildbox for the PECL extensions for Windows systems hasn't been implemented until today. Therefore every single user has to care by his own to compile the corresponding extensions since PHP 5.3.x.
Unfortunately, even the manufacturer of the ticket system haven't been able to remedy until today. Since the missing binary of php_mailparse.dll has been a major blocker of an update to PHP 5.3.x a solution was needed.