note 16976 rejected from function.mail by zak

From: Date: Wed, 21 Nov 2001 04:03:36 +0000
Subject: note 16976 rejected from function.mail by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21093@lists.php.net to get a copy of this message
I ran into this problem: When you send mail, the mail function automatically appends the addresses in "$to" to the "To:" header in the message, and I haven't found a way to make it stop. This is a problem because, for instance, I want to be able to send CCs (and BCCs) from the mail interface I'm making. Since I'm sending mail "to" those addresses, the mail function automatically appends those addresses to the "To:" header, even though the addresses are CC'd, and I'd want them to appear in the "CC:" header instead. Of course I'd rather just specify my own "To:" header, "CC:" header, etc. but mail() won't let me without the addresses showing up in the "To:" header regardless. If there is a solution to this, someone please post it here.

« previous php.notes (#21093) next »