php.net |  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
 [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:

mail(
'',
$subject,
$message,
$headers . 'To: ' . join(',', $emails),
'-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/bulkmail -fbounce@server.com'
);


Here is my configure line for PHP:

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 16:59 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 20:05:44 2022 UTC