Update nodemailer to v4.x

This commit is contained in:
Dimitris 2017-08-25 18:05:02 +03:00 committed by Miroslav Bajtoš
parent 58090b4b80
commit 83fc62c0af
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
2 changed files with 4 additions and 5 deletions

View File

@ -80,9 +80,7 @@ MailConnector.prototype.setupTransport = function(setting) {
var transport; var transport;
var transportType = (setting.type || 'STUB').toLowerCase(); var transportType = (setting.type || 'STUB').toLowerCase();
if (transportType === 'direct') { if (transportType === 'smtp') {
transport = mailer.createTransport();
} else if (transportType === 'smtp') {
transport = mailer.createTransport(setting); transport = mailer.createTransport(setting);
} else { } else {
var transportModuleName = 'nodemailer-' + transportType + '-transport'; var transportModuleName = 'nodemailer-' + transportType + '-transport';

View File

@ -52,8 +52,9 @@
"loopback-datasource-juggler": "^3.18.0", "loopback-datasource-juggler": "^3.18.0",
"loopback-filters": "^1.0.0", "loopback-filters": "^1.0.0",
"loopback-phase": "^3.0.0", "loopback-phase": "^3.0.0",
"nodemailer": "^2.5.0", "nodemailer": "^4.0.1",
"nodemailer-stub-transport": "^1.0.0", "nodemailer-direct-transport": "^3.3.2",
"nodemailer-stub-transport": "^1.1.0",
"serve-favicon": "^2.2.0", "serve-favicon": "^2.2.0",
"stable": "^0.1.5", "stable": "^0.1.5",
"strong-globalize": "^3.1.0", "strong-globalize": "^3.1.0",