Set the Sender on emails as well as from. Fixes #5007 for 2.3.1 props mattyrob

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-10-17 20:19:01 +00:00
parent 30110216f2
commit 9eec531922
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ function wp_mail( $to, $subject, $message, $headers = '' ) {
// Set the from name and email
$phpmailer->From = apply_filters( 'wp_mail_from', $from_email );
$phpmailer->Sender = apply_filters( 'wp_mail_from', $from_email );
$phpmailer->FromName = apply_filters( 'wp_mail_from_name', $from_name );
// Set destination address