WordPress.org

Make WordPress Core

Ticket #11376: wp_mail-MsgHTML.diff

File wp_mail-MsgHTML.diff, 642 bytes (added by batmoo, 4 years ago)
  • wp-includes/pluggable.php

     
    447447 
    448448        $phpmailer->ContentType = $content_type; 
    449449 
    450         // Set whether it's plaintext, depending on $content_type 
     450        // Check if we're dealing with an HTML email 
     451        // MsgHTML marks email as HTML and creates plain text copy, albeit a terrible one 
    451452        if ( 'text/html' == $content_type ) 
    452                 $phpmailer->IsHTML( true ); 
     453                $phpmailer->MsgHTML( $message ); 
    453454 
    454455        // If we don't have a charset from the input headers 
    455456        if ( !isset( $charset ) )