- Sets "sender" email header for SMTP/PHPMail methods

This commit is contained in:
Vlad
2017-01-04 10:22:17 -05:00
parent f5dce907ff
commit 02a5de0cd6
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class PHPMail {
->setFrom(array( ->setFrom(array(
$this->sender['from_email'] => $this->sender['from_name'] $this->sender['from_email'] => $this->sender['from_name']
)) ))
->setSender($this->sender['from_email'])
->setReplyTo(array( ->setReplyTo(array(
$this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name'] $this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name']
)) ))

View File

@ -66,6 +66,7 @@ class SMTP {
->setFrom(array( ->setFrom(array(
$this->sender['from_email'] => $this->sender['from_name'] $this->sender['from_email'] => $this->sender['from_name']
)) ))
->setSender($this->sender['from_email'])
->setReplyTo(array( ->setReplyTo(array(
$this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name'] $this->reply_to['reply_to_email'] => $this->reply_to['reply_to_name']
)) ))