summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
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;
+ }
}