WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#21823 closed defect (bug) (worksforme)

wp_mail does not properly send messages to BCC

Reported by: Clorith Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: Mail Keywords: reporter-feedback
Focuses: Cc:
PR Number:

Description

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@rabbit.com";
$header[] = "From: John Doe <john@doe.com>";
$header[] = "Bcc: Jane Doe <jane@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.

Attachments (1)

wp_mail.png (137.0 KB) - added by c3mdigital 7 years ago.

Download all attachments as: .zip

Change History (4)

@c3mdigital
7 years ago

#1 @c3mdigital
7 years ago

  • Resolution set to worksforme
  • Status changed from new to closed
  • Version changed from 3.4.1 to 1.2

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.

I can not reproduce what you are describing. See the attached screenshot for the email headers from my test. The mail was delivered to the BCC address correctly addressed to the To address.

#2 @helenyhou
7 years ago

  • Milestone Awaiting Review deleted

#3 @SergeyBiryukov
7 years ago

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.