Merge pull request #3585 from mitsos1os/nodemailer-update
Update nodemailer to the latest v4 version
This commit is contained in:
commit
995c14eccf
|
@ -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';
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue