|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 00:01:30 2024 UTC