Make WordPress Core

Ticket #39714: phpmailer.diff

File phpmailer.diff, 748 bytes (added by JeffMatson, 8 years ago)

PHPMailer drop-in

  • wp-includes/pluggable.php

    diff --git wp-includes/pluggable.php wp-includes/pluggable.php
    index 3e6fbe1..2ced529 100644
    function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() 
    214214
    215215        // (Re)create it, if it's gone missing
    216216        if ( ! ( $phpmailer instanceof PHPMailer ) ) {
    217                 require_once ABSPATH . WPINC . '/class-phpmailer.php';
    218                 require_once ABSPATH . WPINC . '/class-smtp.php';
     217                require_once ABSPATH . WPINC . 'PHPMailer/class.phpmailer.php';
     218                require_once ABSPATH . WPINC . 'PHPMailer/class.smtp.php';
    219219                $phpmailer = new PHPMailer( true );
    220220        }
    221221
    function wp_text_diff( $left_string, $right_string, $args = null ) { 
    25062506        return $r;
    25072507}
    25082508endif;
    2509