diff --git a/lib/connectors/mail.js b/lib/connectors/mail.js index 883ecec4..b4542244 100644 --- a/lib/connectors/mail.js +++ b/lib/connectors/mail.js @@ -19,7 +19,15 @@ module.exports = MailConnector; function MailConnector(settings) { assert(typeof settings === 'object', 'cannot initialize MailConnector without a settings object'); - var transports = settings.transports || [settings.transport] || []; + + if(!settings.transport){ + settings.transport = []; + }else{ + settings.transport = [settings.transport]; + } + + var transports = settings.transports || settings.transport; + this.transportsIndex = {}; this.transports = [];