mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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:
parent
1e60e0df9a
commit
2e2832dc85
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user