diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-22 15:23:47 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-05-23 02:48:44 +0200 |
commit | 1134a08270c31d8ce5d92eabaff2c2dde888d76c (patch) | |
tree | 4a6f28bf245a30bec400585109d64f29735bac5b | |
parent | 38c5d218dd6ff90be434957e1b5969899f58fb57 (diff) | |
download | server-1134a08270c31d8ce5d92eabaff2c2dde888d76c.tar.gz |
Print debugging mail notifications when there's no mailer.
-rw-r--r-- | server.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); + } + } } /* |