Bug #15509 Updated: fifth argument in mail only supports one parameter and no spaces
| From: | mfischer@php.net | Date: | Mon, 10 Jun 2002 15:25:06 +0000 |
| Subject: | Bug #15509 Updated: fifth argument in mail only supports one parameter and no spaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10023@lists.php.net to get a copy of this message | ||
ID: 15509
Updated by: mfischer@php.net
Reported By: andreia.mahler@ipayx.com
-Status: Feedback
+Status: Closed
Bug Type: Mail related
Operating System: Linux RedHat 7.1
PHP Version: 4.1.1
New Comment:
The behaviour was changed for security reason, only one parameter can
be passed, even when spaces are in the parameter.
Previous Comments:
------------------------------------------------------------------------
[2002-06-10 10:30:34] andreia.mahler@ipayx.com
I don't have safe-mode enabled - in php.ini
;
; Safe Mode
;
safe_mode = Off
Thanks!
Andreia
------------------------------------------------------------------------
[2002-06-02 18:26:17] mfischer@php.net
Do you have safe_mode enabled?
------------------------------------------------------------------------
[2002-02-11 13:32:14] andreia.mahler@ipayx.com
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 this bug report at http://bugs.php.net/?id=15509&edit=1