From c4dc37ef7520e780a1c3b414a477e0312ffe734f Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 17 Oct 2007 20:17:01 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index c0a10e2297..0787fb8239 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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