Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#21823 closed defect (bug) (worksforme)

wp_mail does not properly send messages to BCC

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

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 14 years ago.

Download all attachments as: .zip

Change History (4)

@c3mdigital
14 years ago

#1 @c3mdigital
14 years ago

  • Resolutionworksforme
  • Status newclosed
  • Version 3.4.11.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
14 years ago

  • Milestone Awaiting Review

#3 @SergeyBiryukov
14 years ago

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