diff --git a/lib/connectors/mail.js b/lib/connectors/mail.js index 682f9470..5f846ae3 100644 --- a/lib/connectors/mail.js +++ b/lib/connectors/mail.js @@ -18,7 +18,8 @@ module.exports = MailConnector; function MailConnector(settings) { assert(typeof settings === 'object', 'cannot initiaze MailConnector without a settings object'); var transports = settings.transports || []; - + this.transportsIndex = {}; + transports.forEach(this.setupTransport.bind(this)); }