Make WordPress Core


Ignore:
Timestamp:
02/21/2004 10:53:05 PM (21 years ago)
Author:
michelvaldrighi
Message:

notification emails are now sent using the blog's charset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r902 r905  
    10001000    global $wpdb, $tablecomments, $tableposts, $tableusers;
    10011001    global $querystring_start, $querystring_equal, $querystring_separator;
    1002     global $blogfilename, $blogname, $siteurl;
     1002    global $blogfilename, $blogname, $siteurl, $blog_charset;
    10031003   
    10041004    $comment = $wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_ID='$comment_id' LIMIT 1");
     
    10441044    }
    10451045
    1046     @mail($user->user_email, $subject, $notify_message, $from);
     1046    $message_headers = "MIME-Version: 1.0\r\n"
     1047        . "$from\r\n"
     1048        . "Content-Type: text/plain; charset=\"$blog_charset\"\r\n";
     1049
     1050    @mail($user->user_email, $subject, $notify_message, $message_headers);
    10471051   
    10481052    return true;
     
    10811085    $from  = "From: $admin_email";
    10821086
    1083     @mail($admin_email, $subject, $notify_message, $from);
     1087    $message_headers = "MIME-Version: 1.0\r\n"
     1088        . "$from\r\n"
     1089        . "Content-Type: text/plain; charset=\"$blog_charset\"\r\n";
     1090
     1091    @mail($admin_email, $subject, $notify_message, $message_headers);
    10841092   
    10851093    return true;
Note: See TracChangeset for help on using the changeset viewer.