mirror of
https://github.com/wassname/talk.git
synced 2026-08-17 11:27:52 +08:00
@@ -6,6 +6,7 @@ dist/coral-admin/bundle.js
|
|||||||
tests/e2e/reports
|
tests/e2e/reports
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.iml
|
*.iml
|
||||||
|
*.swp
|
||||||
dump.rdb
|
dump.rdb
|
||||||
.env
|
.env
|
||||||
gaba.cfg
|
gaba.cfg
|
||||||
|
|||||||
+10
-3
@@ -1,10 +1,17 @@
|
|||||||
const nodemailer = require('nodemailer');
|
const nodemailer = require('nodemailer');
|
||||||
|
|
||||||
if (!process.env.TALK_SMTP_CONNECTION_URL) {
|
if (!process.env.TALK_SMTP_USERNAME || !process.env.TALK_SMTP_PASSWORD) {
|
||||||
console.error('TALK_SMTP_CONNECTION_URL should be defined if you would like to send password reset emails from Talk');
|
console.error('TALK_SMTP_USERNAME and TALK_SMTP_PASSWORD should be defined if you would like to send password reset emails from Talk');
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultTransporter = nodemailer.createTransport(process.env.TALK_SMTP_CONNECTION_URL);
|
const defaultTransporter = nodemailer.createTransport({
|
||||||
|
// https://github.com/nodemailer/nodemailer-wellknown#supported-services
|
||||||
|
service: 'SendGrid',
|
||||||
|
auth: {
|
||||||
|
user: process.env.TALK_SMTP_USERNAME,
|
||||||
|
pass: process.env.TALK_SMTP_PASSWORD
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const mailer = {
|
const mailer = {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user