Bug #18474 Updated: the "parameters" argument can't include spaces

From: Date: Mon, 22 Jul 2002 20:59:00 +0000
Subject: Bug #18474 Updated: the "parameters" argument can't include spaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14798@lists.php.net to get a copy of this message
 ID:               18474
 Updated by:       derick@php.net
 Reported By:      scott@criticalpath.com
-Status:           Open
+Status:           Bogus
 Bug Type:         Mail related
 Operating System: FreeBSD
 PHP Version:      4.2.1
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2002-07-22 16:57:07] scott@criticalpath.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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18474&edit=1



Thread (2 messages)

« previous php.bugs (#14798) next »