#19032 [Opn]: Mail function multiple additional params

From: Date: Thu, 22 Aug 2002 07:05:24 +0000
Subject: #19032 [Opn]: Mail function multiple additional params
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17501@lists.php.net to get a copy of this message
ID: 19032 User updated by: karl@cactuslab.com Reported By: karl@cactuslab.com Status: Open Bug Type: Mail related -Operating System: Redhat Linux 7.2 +Operating System: Redhat Linux 7.1 PHP Version: 4.1.2 New Comment: When using the mail() function to add multiple additional parameters, eg. -fbounce@mydomain.com -O DeliveryMode=d These do not get added as separate parameters, they instead get bundled into the Envelope-from address as one. I'm guessing that the additional parameters arg is being passed to sendmail as one argument rather than being split on spaces? eg. mail( "karl@cactuslab.com", "subject", "Hello", "From: karl@cactuslab.com", "-fbounce@cactuslab.com -O DeliveryMode=d" ); This has occurred after upgrading to 4.1.2 release 7.1.3. This appears to be related to this errata http://online.securityfocus.com/archive/1/194425. cheers, k@rl Previous Comments: ------------------------------------------------------------------------ [2002-08-22 02:48:00] karl@cactuslab.com When using the mail() function to add multiple additional parameters, eg. -fbounce@mydomain.com -O DeliveryMode=d These do not get added as separate parameters, they instead get bundled into the Envelope-from address as one. I'm guessing that the additional parameters arg is being passed to sendmail as one argument rather than being split on spaces? eg. mail( "karl@cactuslab.com", "subject", "Hello", "From: karl@cactuslab.com", "-fbounce@cactuslab.com -O DeliveryMode=d" ); cheers, k@rl ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19032&edit=1

« previous php.bugs (#17501) next »