[wp-trac] [WordPress Trac] #41750: Update PHPMailer to 6.0

WordPress Trac noreply at wordpress.org
Wed Apr 29 08:19:43 UTC 2020


#41750: Update PHPMailer to 6.0
-------------------------------------------------+-------------------------
 Reporter:  Synchro                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  External Libraries                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-dev-   |     Focuses:
  note early                                     |
-------------------------------------------------+-------------------------

Comment (by ayeshrajans):

 Thanks for the patches, and I think we are almost ready for this 🎉.

 I took @desrosj's [41750.5.diff] applied on clean master. The exception
 that caused the test to fail is because PHPMailer rightfully rejected the
 header with a new line character (`\n`) in the custom header.


 {{{

 $phpmailer->addCustomHeader( sprintf( "Content-Type: %s;\n\t
 boundary=\"%s\"", $content_type, $boundary ) );
 }}}

 The `content-type` header does not need this new line or the tab, so I
 removed these characters and . [https://travis-ci.com/github/Ayesh
 /wordpress-develop/jobs/324836254 tests now pass].

 (more comments to follow)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41750#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list