From 7002ce1ea29e1bcc30321deacba0941c186d55d8 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 15 Dec 2022 10:21:16 -0800 Subject: [PATCH] Added emailDelaySeconds to sample advanced config. --- meshmail.js | 2 -- sample-config-advanced.json | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/meshmail.js b/meshmail.js index 65f4b467..6c7ac7e4 100644 --- a/meshmail.js +++ b/meshmail.js @@ -82,8 +82,6 @@ module.exports.CreateMeshMail = function (parent, domain) { obj.smtpServer = nodemailer.createTransport(options); } - console.log('obj.emailDelay', obj.emailDelay); - // Get the correct mail template object function getTemplate(name, domain, lang) { parent.debug('email', 'Getting mail template for: ' + name + ', lang: ' + lang); diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 151aeb29..8f9cd5e7 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -583,16 +583,19 @@ "___tlscertcheck__": "When set to false, the TLS certificate of the SMTP server is not checked.", "_tlscertcheck": false, "__tlsstrict__": "When set to true, TLS cypher setup is more limited, SSLv2 and SSLv3 are not allowed.", - "_tlsstrict": true + "_tlsstrict": true, + "_emailDelaySeconds": 300 }, "_sendgrid": { "from": "myemail@myserver.com", - "apikey": "***********" + "apikey": "***********", + "_emailDelaySeconds": 300 }, "_sendmail": { "newline": "unix", "path": "/usr/sbin/sendmail", - "_args": [ "-f", "foo@example.com" ] + "_args": [ "-f", "foo@example.com" ], + "_emailDelaySeconds": 300 }, "_sms": { "provider": "twilio",