[wpmu-trac] [WordPress MU Trac] #1121: Duplicate MIME headers in activation emails

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Mar 25 15:55:21 UTC 2010


#1121: Duplicate MIME headers in activation emails
-----------------------------+----------------------------------------------
 Reporter:  smajda           |        Owner:  somebody
     Type:  defect           |       Status:  reopened
 Priority:  normal           |    Milestone:          
Component:  component1       |      Version:  2.8.2   
 Severity:  normal           |   Resolution:          
 Keywords:  email, accounts  |  
-----------------------------+----------------------------------------------
Changes (by barry):

  * status:  closed => reopened
  * resolution:  worksforme =>


Comment:

 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.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1121#comment:2>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list