From 9eec531922140ed4cd4169f71d88f1c91b4bb76e Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 17 Oct 2007 20:19:01 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0dd4229a0d..cfeabeeb2c 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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