diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-02 20:58:34 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-02 20:58:34 -0400 |
commit | a27057dd6fbf59e7e88ac19494573a5415d2707e (patch) | |
tree | 54d343d06cef9de6473965ff20f2405812594902 /app/Helper/MailHelper.php | |
parent | 523e0aad7ea6682f310fc26e80633344f414de7a (diff) |
Expose to the user interface the email sender address
Diffstat (limited to 'app/Helper/MailHelper.php')
-rw-r--r-- | app/Helper/MailHelper.php | 17 |
1 files changed, 17 insertions, 0 deletions
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; + } } |