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));