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

@@ -45,4 +45,21 @@ class MailHelper extends Base
return $subject;
}
/**
* Get mail sender address
*
* @access public
* @return string
*/
public function getMailSenderAddress()
{
$email = $this->configModel->get('mail_sender_address');
if (!empty($email)) {
return $email;
}
return MAIL_FROM;
}
}