From 5dc3259a310672aab97f382294b98bcf967964a3 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 27 Aug 2017 23:54:56 +0200 Subject: [PATCH] smtp change --- dist/missingeventdetector.js | 5 ++++- src/missingeventdetector.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/missingeventdetector.js b/dist/missingeventdetector.js index 1061fe8..ed605d7 100644 --- a/dist/missingeventdetector.js +++ b/dist/missingeventdetector.js @@ -15,7 +15,10 @@ class MissingEventProcessor extends Processor.AProcessor { this.smtp = nodemailer.createTransport({ host: config.dict.smtpHost, port: config.dict.smtpPort, - secure: false + secure: false, + tls: { + rejectUnauthorized: false + } }); this.timer = setInterval(() => { this.clientMap.forEach((value, key) => { diff --git a/src/missingeventdetector.ts b/src/missingeventdetector.ts index a089aec..d56701f 100644 --- a/src/missingeventdetector.ts +++ b/src/missingeventdetector.ts @@ -29,7 +29,10 @@ class MissingEventProcessor extends Processor.AProcessor { this.smtp = nodemailer.createTransport({ host: config.dict.smtpHost, port: config.dict.smtpPort, - secure: false + secure: false, + tls: { + rejectUnauthorized: false + } }); this.timer = setInterval(() => {