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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-10-17 20:17:01 +00:00
parent 875424adae
commit 9ef11d81bd
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ function wp_mail( $to, $subject, $message, $headers = '' ) {
// Set the from name and email // Set the from name and email
$phpmailer->From = apply_filters( 'wp_mail_from', $from_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 ); $phpmailer->FromName = apply_filters( 'wp_mail_from_name', $from_name );
// Set destination address // Set destination address