summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/class/settings.class.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/app/class/settings.class.php b/app/class/settings.class.php
index 5609605..abafd0a 100644
--- a/app/class/settings.class.php
+++ b/app/class/settings.class.php
@@ -89,6 +89,56 @@ 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 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", 0, $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);
+ }
}
?>