Skip to content

Commit a0d5128

Browse files
committed
Switch SMTP transporter configuration
1 parent 97421f9 commit a0d5128

3 files changed

Lines changed: 20 additions & 51 deletions

File tree

client/package-lock.json

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/app/services/smtp.service.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ const smtpAuthPass = process.env.SMTP_AUTH_PASS;
99
let transporter = nodemailer.createTransport({
1010
host: smtpHost,
1111
port: smtpPort,
12-
secure: smtpSecure, // true for 465, false for other ports
13-
auth: {
14-
user: smtpAuthUser,
15-
pass: smtpAuthPass
16-
}
12+
secure: smtpSecure // true
1713
});
1814

15+
// If Google Workspace SMTP Relay is configured to accept requests
16+
// from a specific IP address, you don't want to incluide the auth
17+
// user/pass, otherwise, then you need these credentials.
18+
transporter.auth = {
19+
user: smtpAuthUser,
20+
pass: smtpAuthPass
21+
};
22+
1923
/*
2024
msg object should have to, subject, text, html fields
2125
*/

0 commit comments

Comments
 (0)