#21823 closed defect (bug) (worksforme)
wp_mail does not properly send messages to BCC
| Reported by: | Clorith | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | 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)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.