diff options
Diffstat (limited to 'app/class/settings.class.php')
-rw-r--r-- | app/class/settings.class.php | 58 |
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); + } } ?> |