Expose to the user interface the email sender address

This commit is contained in:
Frederic Guillot
2016-06-02 20:58:34 -04:00
parent 523e0aad7e
commit a27057dd6f
4 changed files with 32 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ class Mail extends Base implements ClientInterface
try {
$message = Swift_Message::newInstance()
->setSubject($subject)
->setFrom(array(MAIL_FROM => $author))
->setFrom(array($this->helper->mail->getMailSenderAddress() => $author))
->setBody($html, 'text/html')
->setTo(array($email => $name));