wp_mail does not properly send messages to BCC
|Reported by:||Clorith||Owned by:|
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.
$to = "email@example.com"; $header = "From: John Doe <firstname.lastname@example.org>"; $header = "Bcc: Jane Doe <email@example.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.
Change History (4)
comment:1 c3mdigital — 15 months ago
- Resolution set to worksforme
- Status changed from new to closed
- Version changed from 3.4.1 to 1.2