|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18474 the "parameters" argument can't include spaces
Submitted: 2002-07-22 16:57 UTC Modified: 2002-07-22 16:59 UTC
From: scott at criticalpath dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.2.1 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: scott at criticalpath dot com
New email:
PHP Version: OS:


 [2002-07-22 16:57 UTC] scott at criticalpath dot com
My script calls the mail() function, using the 5th argument to pass options to the sendmail command-line, including the "-f" option to set the envelope sender. However, the latest version of PHP fails to pass extra arguments to the command line if there is a space anywhere.

For example, everything after the first space in the last argument of this mail() call is thrown away:

$headers . 'To: ' . join(',', $emails),
'-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/bulkmail'

Here is my configure line for PHP:

./configure --with-apache=../apache_1.3.26 --with-mysql --with-xml --with-session


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 16:59 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 07:01:27 2023 UTC