summaryrefslogtreecommitdiffstats
path: root/app/class/settings.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-20 00:17:17 -0400
committerMalf Furious <m@lfurio.us>2017-06-20 00:17:17 -0400
commita4d96f0c1e9dd89df3dd189664f400680eb4e8fa (patch)
treeba0e0b0c02a7c3384306a38106ac6eebdb80b4f4 /app/class/settings.class.php
parent2376aabe74528b018189982224d61a643325b114 (diff)
parent2564b9953bb7bd8e90a9865962cb9e88d4cfd218 (diff)
downloadscrott-a4d96f0c1e9dd89df3dd189664f400680eb4e8fa.tar.gz
scrott-a4d96f0c1e9dd89df3dd189664f400680eb4e8fa.zip
Merge branch 'feature/email' into dev
Diffstat (limited to '')
-rw-r--r--app/class/settings.class.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/app/class/settings.class.php b/app/class/settings.class.php
index 5609605..19fba6a 100644
--- a/app/class/settings.class.php
+++ b/app/class/settings.class.php
@@ -89,6 +89,64 @@ abstract class settings
{
return self::option("allowPublicSignup", false, $value);
}
+
+ /*
+ * SMTP email address
+ */
+ public static function smtpEmailAddress(?string $value = NULL) : string
+ {
+ return self::option("smtpEmailAddress", "", $value);
+ }
+
+ /*
+ * SMTP FROM name
+ */
+ public static function smtpFrom(?string $value = NULL) : string
+ {
+ return self::option("smtpFrom", "", $value);
+ }
+
+ /*
+ * SMTP server address
+ */
+ public static function smtpServer(?string $value = NULL) : string
+ {
+ return self::option("smtpServer", "", $value);
+ }
+
+ /*
+ * SMTP port number
+ */
+ public static function smtpPort(?int $value = NULL) : int
+ {
+ return self::option("smtpPort", 25, $value);
+ }
+
+ /*
+ * SMTP security
+ * Should be '', 'ssl', or 'tls'. See the 'SMTPSecure' property
+ * from PHP Mailer module.
+ */
+ public static function smtpSecurity(?string $value = NULL) : string
+ {
+ return self::option("smtpSecurity", "", $value);
+ }
+
+ /*
+ * SMTP username
+ */
+ public static function smtpUname(?string $value = NULL) : string
+ {
+ return self::option("smtpUname", "", $value);
+ }
+
+ /*
+ * SMTP password
+ */
+ public static function smtpPasswd(?string $value = NULL) : string
+ {
+ return self::option("smtpPasswd", "", $value);
+ }
}
?>