summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-05 14:53:46 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-05 14:53:46 -0400
commitcd4c09c10aabb133efa0ef5e0566630941178a4a (patch)
tree2f3f56617c90ce8c907f46324fa2dde26e91e79d /app/Helper
parenta08339059b06bcfb673b13a380b6f199abfb5983 (diff)
Conifgure email settings through user interface
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/MailHelper.php17
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;
+ }
}