Bug #14799: Remove the "To:/Subject:" headers if not entered

From: Date: Wed, 02 Jan 2002 14:20:09 +0000
Subject: Bug #14799: Remove the "To:/Subject:" headers if not entered
Groups: php.dev 
Request: Send a blank email to php-dev+get-75594@lists.php.net to get a copy of this message
From: miki@canaan.co.il Operating system: RH 7.x PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: Remove the "To:/Subject:" headers if not entered 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 bug report at: http://bugs.php.net/?id=14799&edit=1

« previous php.dev (#75594) next »