Ticket #6899 (closed enhancement: fixed)

Opened 7 months ago

Last modified 5 months ago

Improve handling of CC and BCC hearer information

Reported by: MattyRob Assigned to: anonymous
Priority: high Milestone: 2.6
Component: General Version: 2.5.1
Severity: normal Keywords: has-patch 2nd-opinion
Cc: mattyrob

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

patch.diff (1.0 kB) - added by MattyRob on 05/02/08 19:37:15.

Change History

05/02/08 19:37:15 changed by MattyRob

  • attachment patch.diff added.

06/16/08 20:00:14 changed by ryan

  • milestone changed from 2.5.2 to 2.6.

06/16/08 20:02:10 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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