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

From: Date: Wed, 02 Jan 2002 16:07:41 +0000
Subject: Bug #14799 Updated: Remove the "To:/Subject:" headers if not entered
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75602@lists.php.net to get a copy of this message
ID: 14799 User updated by: miki@canaan.co.il Reported By: miki@canaan.co.il Status: Open Bug Type: Mail related Operating System: RH 7.x PHP Version: 4.0.6 New Comment: I also noticed and maybe im wrong that the mail function replace the "Return-path:" header that i inserted with Return-path:localuser@machine.com if so this should be fixed too Previous Comments: ------------------------------------------------------------------------ [2002-01-02 09:21:44] miki@canaan.co.il oops, forgot to mention the bug type. sorry ------------------------------------------------------------------------ [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

« previous php.dev (#75602) next »