Make WordPress Core

Changeset 5061


Ignore:
Timestamp:
03/18/2007 11:16:14 PM (17 years ago)
Author:
ryan
Message:

Add wp_mail_from filter. Props rob1n. fixes #2053

File:
1 edited

Legend:

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

    r4996 r5061  
    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    }
Note: See TracChangeset for help on using the changeset viewer.