summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-22 15:23:47 +0200
committerTor Andersson <tor@ccxvii.net>2022-05-23 02:48:44 +0200
commit1134a08270c31d8ce5d92eabaff2c2dde888d76c (patch)
tree4a6f28bf245a30bec400585109d64f29735bac5b
parent38c5d218dd6ff90be434957e1b5969899f58fb57 (diff)
downloadserver-1134a08270c31d8ce5d92eabaff2c2dde888d76c.tar.gz
Print debugging mail notifications when there's no mailer.
-rw-r--r--server.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.js b/server.js
index da77087..7d40234 100644
--- a/server.js
+++ b/server.js
@@ -54,6 +54,11 @@ if (process.env.MAIL_HOST && process.env.MAIL_PORT && process.env.MAIL_FROM) {
console.log("Mail notifications enabled: ", mailer.options);
} else {
console.log("Mail notifications disabled.");
+ mailer = {
+ sendMail(obj, callback) {
+ callback("DID NOT SEND: " + JSON.stringify(obj,0,4));
+ }
+ }
}
/*