summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-21 22:49:15 -0400
committerMalf Furious <m@lfurio.us>2018-09-21 22:49:15 -0400
commit652a62ede6849d04302153d8a3a7fad492b18c5b (patch)
tree8d345c189054bf54a34282b8cb51f328026dd16f /app/class
parenta6f8c82fa4ea831e8a87cf5860f44f84ae68950d (diff)
downloadscrott-652a62ede6849d04302153d8a3a7fad492b18c5b.tar.gz
scrott-652a62ede6849d04302153d8a3a7fad492b18c5b.zip
settings: Add key 'smtpResult'
This is not meant to be a user (admin) configurable key. Rather, this is a mechanism for success/failure results from interactions with PHPMailer to make their way back to the UI. Down the road, email sending functions should publish their true/false return value to this configuration key. The initial default value of "NULL" means no mail send attempts have taken place.
Diffstat (limited to '')
-rw-r--r--app/class/settings.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/settings.class.php b/app/class/settings.class.php
index 19fba6a..d936a62 100644
--- a/app/class/settings.class.php
+++ b/app/class/settings.class.php
@@ -147,6 +147,14 @@ abstract class settings
{
return self::option("smtpPasswd", "", $value);
}
+
+ /*
+ * SMTP result of last attempted send - 'true', 'false', 'NULL'
+ */
+ public static function smtpResult(?string $value = NULL) : string
+ {
+ return self::option("smtpResult", "NULL", $value);
+ }
}
?>