WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#12728 closed defect (bug) (fixed)

Duplicate mime headers in MS activation emails

Reported by: nacin Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Mail Keywords: has-patch needs-refresh
Focuses: multisite Cc:

Description

Original MU ticket: http://trac.mu.wordpress.org/ticket/1121

From barry:

PHPMailer *should* detect the presence of an existing MIME-Type header and not add a new one. If you were/are using an old version of wp_mail() however, which also set an explicit MIME-Type header (pre http://core.trac.wordpress.org/changeset/5764), you end up with duplicate headers before ever getting to PHPMailer. PHPMailer does not remove headers, so you end up with dupe headers in your email. I don't really see any good reason to set explicit MIME-Type headers in the calling function, and I think they should be removed. Patch attached.

Attachments (1)

remove-mime.diff (2.2 KB) - added by nacin 9 years ago.
From barry. Against wpmu-functions.php. Code still exists in ms-functions.php

Download all attachments as: .zip

Change History (3)

@nacin
9 years ago

From barry. Against wpmu-functions.php. Code still exists in ms-functions.php

#1 @nacin
9 years ago

  • Keywords has-patch needs-refresh added

#2 @nacin
9 years ago

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

(In [14055]) Don't set MIME headers in MS activation/welcome emails. fixes #12728, props barry.

Note: See TracTickets for help on using tickets.