diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-05 14:53:46 -0400 |
commit | cd4c09c10aabb133efa0ef5e0566630941178a4a (patch) | |
tree | 2f3f56617c90ce8c907f46324fa2dde26e91e79d /app/Helper | |
parent | a08339059b06bcfb673b13a380b6f199abfb5983 (diff) |
Conifgure email settings through user interface
Diffstat (limited to 'app/Helper')
-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 12e7f05f..3b1c9e41 100644 --- a/app/Helper/MailHelper.php +++ b/app/Helper/MailHelper.php @@ -62,4 +62,21 @@ class MailHelper extends Base return MAIL_FROM; } + + /** + * Get mail sender address + * + * @access public + * @return string + */ + public function getMailTransport() + { + $transport = $this->configModel->get('mail_transport'); + + if (!empty($transport)) { + return $transport; + } + + return MAIL_TRANSPORT; + } } |