Make WordPress Core


Ignore:
Timestamp:
10/04/2004 07:44:04 AM (20 years ago)
Author:
saxmatt
Message:

Use mb_mail_send if available.

File:
1 edited

Legend:

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

    r1728 r1733  
    10041004        . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
    10051005
    1006     @mail($user->user_email, $subject, $notify_message, $message_headers);
     1006    @wp_mail($user->user_email, $subject, $notify_message, $message_headers);
    10071007   
    10081008    return true;
     
    10471047        . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
    10481048
    1049     @mail($admin_email, $subject, $notify_message, $message_headers);
     1049    @wp_mail($admin_email, $subject, $notify_message, $message_headers);
    10501050   
    10511051    return true;
     
    17971797}
    17981798
     1799
     1800function wp_mail($to, $subject, $message, $headers = '', $more = '') {
     1801    if ( function_exists('mb_send_mail') )
     1802        return mb_send_mail($to, $subject, $message, $headers, $more);
     1803    else
     1804        return mail($to, $subject, $message, $headers, $more);
     1805}
     1806
    17991807?>
Note: See TracChangeset for help on using the changeset viewer.