Changeset 5061

Show
Ignore:
Timestamp:
03/18/07 23:16:14 (2 years ago)
Author:
ryan
Message:

Add wp_mail_from filter. Props rob1n. fixes #2053

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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    }