mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
🔧 Add support for enabling TLS for SMTP
This commit is contained in:
parent
da141c7c48
commit
fe2a0fad3c
2 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,13 @@ const getTransport = () => {
|
||||||
pass: process.env.SMTP_PWD,
|
pass: process.env.SMTP_PWD,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
tls:
|
||||||
|
process.env.SMTP_TLS_ENABLED === "true"
|
||||||
|
? {
|
||||||
|
ciphers: "SSLv3",
|
||||||
|
rejectUnauthorized: false,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
"SMTP_PORT",
|
"SMTP_PORT",
|
||||||
"SMTP_PWD",
|
"SMTP_PWD",
|
||||||
"SMTP_SECURE",
|
"SMTP_SECURE",
|
||||||
|
"SMTP_TLS_ENABLED",
|
||||||
"SMTP_USER",
|
"SMTP_USER",
|
||||||
"SUPPORT_EMAIL"
|
"SUPPORT_EMAIL"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue