From 56fe548a465a09136f8e7eb44c548edd6960dd5f Mon Sep 17 00:00:00 2001 From: britztopher Date: Wed, 13 Aug 2014 15:57:28 -0400 Subject: [PATCH] added the ability to use an array of transports or just a single trnasport --- lib/connectors/mail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/connectors/mail.js b/lib/connectors/mail.js index 3e6e0d39..883ecec4 100644 --- a/lib/connectors/mail.js +++ b/lib/connectors/mail.js @@ -19,9 +19,9 @@ module.exports = MailConnector; function MailConnector(settings) { assert(typeof settings === 'object', 'cannot initialize MailConnector without a settings object'); - var transports = settings.transports || []; + var transports = settings.transports || [settings.transport] || []; this.transportsIndex = {}; - this.transports = []; + this.transports = []; if(loopback.isServer) { transports.forEach(this.setupTransport.bind(this));