Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#6899 closed enhancement (fixed)

Improve handling of CC and BCC hearer information

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

Description

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

Download all attachments as: .zip

Change History (3)

@MattyRob
18 years ago

#1 @ryan
18 years ago

  • Milestone changed from 2.5.2 to 2.6

#2 @ryan
18 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.