Skip to content

Commit 995c14e

Browse files
authored
Merge pull request #3585 from mitsos1os/nodemailer-update
Update nodemailer to the latest v4 version
2 parents 58090b4 + 83fc62c commit 995c14e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/connectors/mail.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ MailConnector.prototype.setupTransport = function(setting) {
8080

8181
var transport;
8282
var transportType = (setting.type || 'STUB').toLowerCase();
83-
if (transportType === 'direct') {
84-
transport = mailer.createTransport();
85-
} else if (transportType === 'smtp') {
83+
if (transportType === 'smtp') {
8684
transport = mailer.createTransport(setting);
8785
} else {
8886
var transportModuleName = 'nodemailer-' + transportType + '-transport';

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@
5252
"loopback-datasource-juggler": "^3.18.0",
5353
"loopback-filters": "^1.0.0",
5454
"loopback-phase": "^3.0.0",
55-
"nodemailer": "^2.5.0",
56-
"nodemailer-stub-transport": "^1.0.0",
55+
"nodemailer": "^4.0.1",
56+
"nodemailer-direct-transport": "^3.3.2",
57+
"nodemailer-stub-transport": "^1.1.0",
5758
"serve-favicon": "^2.2.0",
5859
"stable": "^0.1.5",
5960
"strong-globalize": "^3.1.0",

0 commit comments

Comments
 (0)