Update nodemailer to v4.x
This commit is contained in:
parent
58090b4b80
commit
83fc62c0af
|
@ -80,9 +80,7 @@ MailConnector.prototype.setupTransport = function(setting) {
|
|||
|
||||
var transport;
|
||||
var transportType = (setting.type || 'STUB').toLowerCase();
|
||||
if (transportType === 'direct') {
|
||||
transport = mailer.createTransport();
|
||||
} else if (transportType === 'smtp') {
|
||||
if (transportType === 'smtp') {
|
||||
transport = mailer.createTransport(setting);
|
||||
} else {
|
||||
var transportModuleName = 'nodemailer-' + transportType + '-transport';
|
||||
|
|
|
@ -52,8 +52,9 @@
|
|||
"loopback-datasource-juggler": "^3.18.0",
|
||||
"loopback-filters": "^1.0.0",
|
||||
"loopback-phase": "^3.0.0",
|
||||
"nodemailer": "^2.5.0",
|
||||
"nodemailer-stub-transport": "^1.0.0",
|
||||
"nodemailer": "^4.0.1",
|
||||
"nodemailer-direct-transport": "^3.3.2",
|
||||
"nodemailer-stub-transport": "^1.1.0",
|
||||
"serve-favicon": "^2.2.0",
|
||||
"stable": "^0.1.5",
|
||||
"strong-globalize": "^3.1.0",
|
||||
|
|
Loading…
Reference in New Issue