added the ability to use an array of transports or just a single trnasport

This commit is contained in:
britztopher 2014-08-13 15:57:28 -04:00
parent d82d789ffa
commit 56fe548a46
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ module.exports = MailConnector;
function MailConnector(settings) { function MailConnector(settings) {
assert(typeof settings === 'object', 'cannot initialize MailConnector without a settings object'); assert(typeof settings === 'object', 'cannot initialize MailConnector without a settings object');
var transports = settings.transports || []; var transports = settings.transports || [settings.transport] || [];
this.transportsIndex = {}; this.transportsIndex = {};
this.transports = []; this.transports = [];