Installing php_mailparse On IIS

Posted on 2009-04-28
Last Modified: 2013-12-13
Hello I am not a huge PHP guy. I Am running server 2003 with II6 and PHP 5.2.9  I need Mailparse.dll installed

I downloaded the php_mailparse.dll and put in the ext file

I also have good in my ini file

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.


not sure what i am missing maybe the file isnt compatable? not sure what error PHP Warning: PHP Startup: Unable to load dynamic library './php_mailparse.dll' - The specified module could not be found. in Unknown on line 0

I did these commands

1. Go to and download the version of the dll that goes with your PHP version.
2. Place the dll into your php/ext directory.
3. Open your php.ini and adda line under the extension=php_mbstring called extension=php_mailparse. Make sure that both of these lines do not have the ; preceding them.
4. remove the ; in front of the extension=php_imap.dll
5. Save your changes in the php.ini file
6. Restart IIS

But the link in 1 is broken.. i had to find another dll could that be the issue i am running 5.2.9 php where can i find a good dll?

if thats the issue
Question by:gotti777

    Author Comment

    I guess I am looking for a compatable version of the  compile PECL extensions  php_mailparse.dll   Or try and compile my own but know how.  i downloaded mailparse-2[2].1.5.tgz  from the php site un ziped it but thats about as far as i got
    LVL 40

    Expert Comment

    The pecl4win site is offline and has been for a while. As a windows+PHP developer, the lack of the pecl4win archive is a PITA.

    I don't know what the issues are (I've just asked and will update you when I get a response).

    But for each extension, at least 20 builds would need to be performed (VC6/VC9, ts/nts, PHP5.0/PHP5.1/PHP5.2/PHP5.3/PHP6.0). If debug builds are also required, then this becomes 40 builds per extension.

    There are currently 220 PECL packages, so that (WCS) is 8,800 builds.

    Not an insignificant task. And then what frequency? Daily/Weekly?

    You may also have to deal with different versions of the extension.

    So, not really an answer, just some info.

    If/when I get a response from the PHP Group, I'll let you know.


    Richard Quadling.
    LVL 40

    Expert Comment

    by:RQuadling is the only place I could find a prebuilt php_mailparse.dll

    LVL 40

    Expert Comment

    I'm afraid you are out of luck.

    About 10 hours ago, this was committed to the PHP documentation ...

     Removed references to pecl4win as it died. And updated information with
     the current status, which is: We do not offer Windows binaries for PECL
     extensions. In the future will offer such downloads.


    +     At this time the PHP project does not compile Windows binaries for
    +     PECL extensions. However, to compile PHP under Windows see the
    +     chapter titled
    +     <link linkend="">building PHP for Windows</link>.

    So, unless you have good quality C skills and a MS C compiler you are going to have problems.

    In just reading through the PECL newsgroup regarding this issue. It seems to be repeated again and again.

    LVL 40

    Expert Comment

    It seems the issue is that PECL do not version their extensions. So when you build an extension today, the code may be different tomorrow, so which version is the right one?

    Over 200 extensions, each with their own "version" and using external libraries which also have versions and the mess is massive and not going to be fixed any time soon it seems.

    LVL 40

    Accepted Solution


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now