Bug #14799 Updated: Remove the "To:/Subject:" headers if not entered
ID: 14799
User updated by: miki@canaan.co.il
Reported By: miki@canaan.co.il
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: Mail related
Operating System: RH 7.x
PHP Version: 4.0.6
New Comment:
oops, forgot to mention the bug type.
sorry
Previous Comments:
------------------------------------------------------------------------
[2002-01-02 09:20:09] miki@canaan.co.il
mail command accept:
mail ($recipient, $subject, $message [, string additional_headers]);
all good.
But when I construct all the mail from headers I don't need to supply: $recipient, $subject,
$message as they all exist in the headers.
So I do:
mail ("", "", "", $headers);
The problem is that even when I write the "To:" header in the headers another empty
"To:" appear next to it.
So for maximal flexibility I think that $headers suppose to override all other fields.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14799&edit=1
Thread (6 messages)