added the ability to use an array of transports or just a single trnasport
This commit is contained in:
parent
d82d789ffa
commit
56fe548a46
|
@ -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 = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue