Make WordPress Core

Ticket #2053: 2053.diff

File 2053.diff, 609 bytes (added by rob1n, 17 years ago)

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

  • wp-includes/pluggable.php

     
    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