🔧 Add support for enabling TLS for SMTP

This commit is contained in:
Luke Vella 2023-04-17 20:11:49 +01:00
parent da141c7c48
commit fe2a0fad3c
2 changed files with 8 additions and 0 deletions

View file

@ -63,6 +63,13 @@ const getTransport = () => {
pass: process.env.SMTP_PWD,
}
: undefined,
tls:
process.env.SMTP_TLS_ENABLED === "true"
? {
ciphers: "SSLv3",
rejectUnauthorized: false,
}
: undefined,
});
}
}

View file

@ -36,6 +36,7 @@
"SMTP_PORT",
"SMTP_PWD",
"SMTP_SECURE",
"SMTP_TLS_ENABLED",
"SMTP_USER",
"SUPPORT_EMAIL"
]