From 712b4ce9c685bd1a1e2affaa2da6225afce35bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Sko=C5=99epa?= Date: Tue, 13 Dec 2016 22:36:39 +0100 Subject: [PATCH] Fix turning secure option off --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c11d186..62e9fc6 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ Emailer.send = function(data, callback) { var smtpConfig = { host: settings['emailer:local:host'], port: settings['emailer:local:port'], - secure: settings['emailer:local:secure'], + secure: settings['emailer:local:secure'] !== 'off', auth: { user: settings['emailer:local:username'], pass: settings['emailer:local:password'],