[wp-trac] [WordPress Trac] #28909: Update PHPMailer to 5.2.10

WordPress Trac noreply at wordpress.org
Wed Jul 8 17:15:04 UTC 2015


#28909: Update PHPMailer to 5.2.10
--------------------------------+----------------------
 Reporter:  MattyRob            |       Owner:  ocean90
     Type:  task (blessed)      |      Status:  closed
 Priority:  normal              |   Milestone:  4.3
Component:  External Libraries  |     Version:  4.0
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:
--------------------------------+----------------------
Changes (by ocean90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33124"]:
 {{{
 #!CommitTicketReference repository="" revision="33124"
 Update PHPMailer to 5.2.10 from 5.2.7.

 Includes two modifications for WordPress:
 * Removes support for NTLM in `class-smtp.php` since the required client
 (`extras/ntlm_sasl_client.php`) is not distributed as part of WordPress.
 * Requires `class-smtp.php` for backwards compatibility with direct (non-
 wp_mail()) uses of PHPMailer, as the autoloader isn't used. See [27385].

 This also includes a change to our `MockMailer` for unit tests. It now
 overrides `postSend() instead of `send()`, and `preSend()`.
 `preSend()` resets `$this->Encoding` because PHPMailer doesn't clean up
 after itself / presets all variables. This becomes an issue when
 `PHPMailer::createBody()` sets `$this->Encoding = 'quoted-printable'`
 (away from it's default of 8bit) when it encounters a line longer than 998
 characters. `Tests_Comment::test_comment_field_lengths` is such a case.

 props MattyRob, dd32.
 fixes #28909.
 }}}

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


More information about the wp-trac mailing list