[wp-trac] [WordPress Trac] #21823: wp_mail does not properly send messages to BCC
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 13:46:14 UTC 2012
#21823: wp_mail does not properly send messages to BCC
--------------------------+-----------------------------
Reporter: Clorith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 3.4.1
Severity: normal | Keywords:
--------------------------+-----------------------------
When using wp_mail the message is sent in two instances if you add a BCC
entry to the $header array. This leaves the BCC recipient looking as the
only, and intended, recipient.
Normal behavior would be that the BCC recipient sees the intended
recipient as well as him/her self.
Example:
{{{
$to = "roger at rabbit.com";
$header[] = "From: John Doe <john at doe.com>";
$header[] = "Bcc: Jane Doe <jane at doe.com";
wp_mail( $to, 'Hello', 'World', $header );
}}}
In this situation, Roger Rabbit will receive an email form John Doe, and
so will Jane Doe.
The outcome should be that Jane Doe received an email addressed to Roger
Rabbit.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21823>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list