Added emailDelaySeconds to sample advanced config.

Ylian Saint-Hilaire committed Dec 15, 2022 at 10:21 UTC 7002ce1ea29e1bcc30321deacba0941c186d55d8
2 files changed +6 -5
meshmail.js
-2
@@ -82,8 +82,6 @@ module.exports.CreateMeshMail = function (parent, domain) {
82 obj.smtpServer = nodemailer.createTransport(options);
83 }
84
85 - console.log('obj.emailDelay', obj.emailDelay);
86 -
85 // Get the correct mail template object
86 function getTemplate(name, domain, lang) {
87 parent.debug('email', 'Getting mail template for: ' + name + ', lang: ' + lang);
sample-config-advanced.json
+6 -3
@@ -583,16 +583,19 @@
583 "___tlscertcheck__": "When set to false, the TLS certificate of the SMTP server is not checked.",
584 "_tlscertcheck": false,
585 "__tlsstrict__": "When set to true, TLS cypher setup is more limited, SSLv2 and SSLv3 are not allowed.",
586 - "_tlsstrict": true
586 + "_tlsstrict": true,
587 + "_emailDelaySeconds": 300
588 },
589 "_sendgrid": {
590 "from": "myemail@myserver.com",
590 - "apikey": "***********"
591 + "apikey": "***********",
592 + "_emailDelaySeconds": 300
593 },
594 "_sendmail": {
595 "newline": "unix",
596 "path": "/usr/sbin/sendmail",
595 - "_args": [ "-f", "foo@example.com" ]
597 + "_args": [ "-f", "foo@example.com" ],
598 + "_emailDelaySeconds": 300
599 },
600 "_sms": {
601 "provider": "twilio",