php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19032 Mail function multiple additional params
Submitted: 2002-08-22 02:48 UTC Modified: 2002-08-22 03:12 UTC
From: karl at cactuslab dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.1.2 OS: Redhat Linux 7.1
Private report: No CVE-ID: None
 [2002-08-22 02:48 UTC] karl at cactuslab dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 03:05 UTC] karl at cactuslab dot 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" );

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
 [2002-08-22 03:12 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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC