Add wp_mail_from filter. Props rob1n. fixes #2053

git-svn-id: http://svn.automattic.com/wordpress/trunk@5061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-18 23:16:14 +00:00
parent 1e60e0df9a
commit 2e2832dc85
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";
}