summaryrefslogtreecommitdiff
path: root/app/Helper/MailHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Helper/MailHelper.php')
-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 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;
+ }
}