Add wp_mail_from filter. Props rob1n. fixes #2053

git-svn-id: https://develop.svn.wordpress.org/trunk@5061 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-18 23:16:14 +00:00
parent a9ad6f372f
commit 58200c8ac8
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ function wp_mail($to, $subject, $message, $headers = '') {
if ( $headers == '' ) {
$headers = "MIME-Version: 1.0\n" .
"From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" .
"From: " . apply_filters('wp_mail_from', "wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME']))) . "\n" .
"Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
}