for #251: SES needs a specific From: address
This commit is contained in:
Родитель
c344f3ad86
Коммит
1b920e3ba6
|
@ -7,6 +7,7 @@ COOKIE_SECRET=3895d33b5f9730f5eb2a2067fe0a690e298f55f5e382c032fd3656863412
|
|||
DATABASE_URL="postgres://postgres@localhost:5432/blurts"
|
||||
|
||||
DEBUG_DUMMY_SMTP=1
|
||||
EMAIL_FROM=""
|
||||
SMTP_HOST=""
|
||||
SMTP_PORT=
|
||||
SMTP_USERNAME=""
|
||||
|
|
|
@ -14,6 +14,7 @@ const kEnvironmentVariables = [
|
|||
"SMTP_PORT",
|
||||
"SMTP_USERNAME",
|
||||
"SMTP_PASSWORD",
|
||||
"EMAIL_FROM",
|
||||
"OAUTH_AUTHORIZATION_URI",
|
||||
"OAUTH_TOKEN_URI",
|
||||
"OAUTH_PROFILE_URI",
|
||||
|
|
|
@ -76,8 +76,9 @@ const EmailUtils = {
|
|||
|
||||
return new Promise((resolve, reject) => {
|
||||
gTransporter.use("compile", hbs(hbsOptions));
|
||||
const emailFrom = AppConstants.EMAIL_FROM || `"Firefox Monitor" < ${kSMTPUsername}`;
|
||||
const mailOptions = {
|
||||
from: `"Firefox Monitor" <${kSMTPUsername}>`,
|
||||
from: emailFrom,
|
||||
to: aRecipient,
|
||||
subject: aSubject,
|
||||
template: aTemplate,
|
||||
|
|
Загрузка…
Ссылка в новой задаче