Merge pull request #3585 from mitsos1os/nodemailer-update

Update nodemailer to the latest v4 version
This commit is contained in:
Miroslav Bajtoš 2018-06-11 16:49:34 +02:00 committed by GitHub
commit 995c14eccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",