diff --git a/routes/api/users/index.js b/routes/api/users/index.js index 759701e529..1ce2e0e26a 100644 --- a/routes/api/users/index.js +++ b/routes/api/users/index.js @@ -119,7 +119,7 @@ router.post('/request-password-reset', (req, res, next) => { const options = { subject: 'Password Reset Requested - Talk', - from: 'noreply@coralproject.net', + from: process.env.TALK_SMTP_FROM_ADDRESS, to: email, html: resetEmailTemplate({ token, diff --git a/services/mailer.js b/services/mailer.js index fe07f063b8..9ff7291d4b 100644 --- a/services/mailer.js +++ b/services/mailer.js @@ -1,6 +1,7 @@ const nodemailer = require('nodemailer'); const smtpRequiredProps = [ + 'TALK_SMTP_FROM_ADDRESS', 'TALK_SMTP_USERNAME', 'TALK_SMTP_PASSWORD', 'TALK_SMTP_HOST'