Make WordPress Core

Ticket #36125: wp45_PHPMailer_Disable_Automatic_TLS_Encryption.36125.git.patch

File wp45_PHPMailer_Disable_Automatic_TLS_Encryption.36125.git.patch, 904 bytes (added by scara, 9 years ago)

$ git format-patch HEAD~1 --stdout > wp45_PHPMailer_Disable_Automatic_TLS_Encryption.36125.git.patch

  • wp-includes/pluggable.php

    From 510d876c1e101f1583a77fb00653d70fa77cf500 Mon Sep 17 00:00:00 2001
    From: Matteo Scaramuccia <wordpress@matteoscaramuccia.com>
    Date: Sun, 6 Mar 2016 08:19:43 +0100
    Subject: [PATCH] PHPMailer: disabled automatic TLS encryption.
    
    ---
     wp-includes/pluggable.php | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
    index 8db1a51..0ea2523 100644
    a b function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() 
    213213                require_once ABSPATH . WPINC . '/class-phpmailer.php';
    214214                require_once ABSPATH . WPINC . '/class-smtp.php';
    215215                $phpmailer = new PHPMailer( true );
     216                // Disable the automatic TLS encryption added in PHPMailer v5.2.10 (9da56fc1328a72aa124b35b738966315c41ef5c6)
     217                $phpmailer->SMTPAutoTLS = false;
    216218        }
    217219
    218220        // Headers