Bug #15509: fifth argument in mail only supports one parameter and no spaces
| From: | andreia dot mahler at ipayx dot com | Date: | Mon, 11 Feb 2002 18:32:15 +0000 |
| Subject: | Bug #15509: fifth argument in mail only supports one parameter and no spaces | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-140@lists.php.net to get a copy of this message | ||
From: andreia.mahler@ipayx.com
Operating system: Linux RedHat 7.1
PHP version: 4.1.1
PHP Bug Type: Mail related
Bug description: fifth argument in mail only supports one parameter and no spaces
The behavior of the fifth parameter of the mail function
has changed from version 4.0.6 to version 4.1.1 - only one sendmail
parameter seems to be allowed and no spaces can follow the flag for the
parameter. Below are some lines of code showing displaying the problem!
in version 4.0.6 the following line worked:
mail("andreia.mahler@ipayx.com", "test subject", "test
body","Message-Id:
test-header", "-N failure,success,
delay -f receipts@ipayx.com");
in version 4.1.1 I could only get:
mail("andreia.mahler@ipayx.com", "test subject", "test
body","Message-Id:
test-header", "-Nfailure,success,
delay");
or
mail("andreia.mahler@ipayx.com", "test subject", "test
body","Message-Id:
test-header", "-freceipts@ipayx.com");
Note that the spaces were not allowed after the flags (-N or -F) and only
one argument alone worked.
Is this is 4.1.1 bug or will we be restricted to only one flag in the
fifth field as the online manual says?
Thanks!
Andreia
--
Edit bug report at http://bugs.php.net/?id=15509&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15509&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15509&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15509&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15509&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15509&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15509&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15509&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15509&r=submittedtwice