From 02a5de0cd6b3c033650e5f6a314fb71b94ab0ccc Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 4 Jan 2017 10:22:17 -0500 Subject: [PATCH] - Sets "sender" email header for SMTP/PHPMail methods --- lib/Mailer/Methods/PHPMail.php | 1 + lib/Mailer/Methods/SMTP.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Mailer/Methods/PHPMail.php b/lib/Mailer/Methods/PHPMail.php index 140587a0c9..d8e7904aa9 100644 --- a/lib/Mailer/Methods/PHPMail.php +++ b/lib/Mailer/Methods/PHPMail.php @@ -45,6 +45,7 @@ class PHPMail { ->setFrom(array( $this->sender['from_email'] => $this->sender['from_name'] )) + ->setSender($this->sender['from_email']) ->setReplyTo(array( $this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name'] )) diff --git a/lib/Mailer/Methods/SMTP.php b/lib/Mailer/Methods/SMTP.php index c92168b1f1..f3bbda4b97 100644 --- a/lib/Mailer/Methods/SMTP.php +++ b/lib/Mailer/Methods/SMTP.php @@ -66,6 +66,7 @@ class SMTP { ->setFrom(array( $this->sender['from_email'] => $this->sender['from_name'] )) + ->setSender($this->sender['from_email']) ->setReplyTo(array( $this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name'] ))