Let email out node set secure connection explicitly

to close #1148
This commit is contained in:
Dave Conway-Jones
2017-02-13 22:43:43 +00:00
parent 93c85ca7cd
commit 367237d946
3 changed files with 8 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ module.exports = function(RED) {
this.name = n.name;
this.outserver = n.server;
this.outport = n.port;
this.secure = n.secure;
var flag = false;
if (this.credentials && this.credentials.hasOwnProperty("userid")) {
this.userid = this.credentials.userid;
@@ -58,7 +59,7 @@ module.exports = function(RED) {
var smtpTransport = nodemailer.createTransport({
host: node.outserver,
port: node.outport,
secure: node.useSSL,
secure: node.secure,
auth: {
user: node.userid,
pass: node.password