From 07e522f6a743e0110f1fe5eb0f581cc314dffbbb Mon Sep 17 00:00:00 2001 From: nguyentrungthat <80239428+nguentrungthat@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:04:25 +0700 Subject: [PATCH] Update index.js --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 43c47b4..bf61271 100644 --- a/index.js +++ b/index.js @@ -185,7 +185,7 @@ async function sendMail(subject, body) { const fileName = `items_sold_out_${year}_${month}_${day}.xlsx`; const transporter = nodemailer.createTransport({ - host: process.env.MAIL_HOST, + host: process.env.MAIL_IP, port: process.env.MAIL_PORT, secure: true, auth: { @@ -194,6 +194,7 @@ async function sendMail(subject, body) { }, connectionTimeout: 10000, // prevent timeout pool: true, // reuse connection if many mails + tls: { servername: process.env.MAIL_HOST }, }); const mailOptions = {