note 16976 added to function.mail
| From: | anonymous at php2 dot chek dot com | Date: | Tue, 20 Nov 2001 20:58:58 +0000 |
| Subject: | note 16976 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21080@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.
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+16976
http://master.php.net/manage/user-notes.php?action=delete+16976
http://master.php.net/manage/user-notes.php?action=reject+16976