From a27057dd6fbf59e7e88ac19494573a5415d2707e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 2 Jun 2016 20:58:34 -0400 Subject: Expose to the user interface the email sender address --- app/Helper/MailHelper.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app/Helper/MailHelper.php') diff --git a/app/Helper/MailHelper.php b/app/Helper/MailHelper.php index 6c7eeff0..12e7f05f 100644 --- a/app/Helper/MailHelper.php +++ b/app/Helper/MailHelper.php @@ -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; + } } -- cgit v1.2.3