mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
udpate smtp module to take a full smtp connection string
This commit is contained in:
+2
-2
@@ -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 = {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user