feat: add TLS support in env

This commit is contained in:
bsourisse 2023-01-19 18:04:26 +01:00
parent c56ecf1d49
commit 35c8a10197

View file

@ -20,7 +20,7 @@ export default async function handler(req, res) {
user: process.env.MAIL_SMTP_LOGIN,
pass: process.env.MAIL_SMTP_PWD,
},
secure: true,
secure: process.env.MAIL_SMTP_SECURE,
});
//Mail options
const mailData = {