From 967472ea74443d14dd69a4216c1c86b7de37f7b8 Mon Sep 17 00:00:00 2001 From: riley Date: Wed, 16 Nov 2016 14:38:29 -0700 Subject: [PATCH] udpate smtp module to take a full smtp connection string --- services/mailer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/mailer.js b/services/mailer.js index cf7a4d26f..d90d04071 100644 --- a/services/mailer.js +++ b/services/mailer.js @@ -1,14 +1,14 @@ const nodemailer = require('nodemailer'); const debug = require('debug')('talk:mail'); -if (!process.env.TALK_SENDGRID_APIKEY) { +if (!process.env.TALK_SMTP_STRING) { debug('\n///////////////////////////////////////////////////////////////\n' + '/// TALK_SENDGRID_APIKEY should be defined if you would ///\n' + '/// like to send password reset emails from Talk ///\n' + '///////////////////////////////////////////////////////////////'); } -const transporter = nodemailer.createTransport(`smtps://apikey:${process.env.TALK_SENDGRID_APIKEY}@smtp.sendgrid.net`); +const transporter = nodemailer.createTransport(process.env.TALK_SMTP_STRING); const mailer = { /**