Ticket #2053: 2053.diff

File 2053.diff, 0.6 kB (added by rob1n, 1 year ago)

Use default (wordpress@domain), but apply_filters in case someone wants to change that.

  • wp-includes/pluggable.php

    old new  
    170170 
    171171        if ( $headers == '' ) { 
    172172                $headers = "MIME-Version: 1.0\n" . 
    173                         "From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" .  
     173                        "From: " . apply_filters('wp_mail_from', "wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']))) . "\n" .  
    174174                        "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 
    175175        } 
    176176