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

git-svn-id: https://develop.svn.wordpress.org/trunk@6265 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-10-17 20:17:01 +00:00
parent 89417fbaf0
commit c4dc37ef75

View File

@ -223,6 +223,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