From 9ef11d81bde09c01b612470eeeeb0a3190fc9bf3 Mon Sep 17 00:00:00 2001
From: westi <westi@1a063a9b-81f0-0310-95a4-ce76da25c4cd>
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: http://svn.automattic.com/wordpress/trunk@6265 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 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