|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19720 mail() does not return with multipart message
Submitted: 2002-10-02 12:42 UTC Modified: 2005-09-02 08:41 UTC
From: dpfender at vantagep dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4CVS OS: Windows 2000 Server SP3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
15 - 13 = ?
Subscribe to this entry?

 [2002-10-02 12:42 UTC] dpfender at vantagep dot com
The identically formatted, multi-part email message, part of which is a base64 encoded .gif image file, is properly sent with mail() on Linux systems but fails to return at all when executed on IIS 5 where php.exe is used.  The rest of the file in which mail() is executed is ignored and there is no error message from PHP.

There is no problem sending simple text messages, only with multi-part encoded messages.

This problem occurs either when using the local SMTP server or a remote SMTP server, as specified in php.ini.

Using Outlook Express to send email with attachments on the local SMTP server works successfully.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-02 13:00 UTC]
There were many improvements to the windows mail handling code - try a non-STABLE snapshot from
 [2002-10-02 13:41 UTC] dpfender at vantagep dot com
I just tried an unstable version, and got the same results as with the original version.
 [2002-10-03 05:19 UTC]
Please provide a full selfcontained script so we can reproduce this problem (or url with php source for download and the binary you want to send).
 [2002-10-03 10:26 UTC] dpfender at vantagep dot com
A complete test package for this problem is now avaiable at

Please view the readme.txt file to run the various test cases.
 [2005-09-02 08:41 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

There's already a request to rewrite the mail() for win32.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 27 11:03:36 2023 UTC