Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#6899 closed enhancement (fixed)

Improve handling of CC and BCC hearer information

Reported by: MattyRob Owned by:
Milestone: 2.6 Priority: high
Severity: normal Version: 2.5.1
Component: General Keywords: has-patch 2nd-opinion
Focuses: Cc:
PR Number:


The $phpmailer class is currently used to enable sending of emails through the wp_mail function defined in wp-includes/pluggable.php

The wp_mail function handles some header information before passing the rest through the AddCustomHeader function.

My plugin (subscribe2) uses the BCC header to send an email notification to a list of users when a new post is made. RFC 2822 (http://www.ietf.org/rfc/rfc2822.txt) lists some restriction over the character length of any header and I'm not sure if AddCustomHeader deals with this limitation.

By adding some code to pluggable.php we can make better use of the AddCc and AddBcc functions to create better email headers.

Attachments (1)

patch.diff (984 bytes) - added by MattyRob 12 years ago.

Download all attachments as: .zip

Change History (3)

12 years ago

#1 @ryan
12 years ago

  • Milestone changed from 2.5.2 to 2.6

#2 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8098]) Handle cc and bcc. Props MattyRob. fixes #6899

Note: See TracTickets for help on using tickets.