add mail logging

This commit is contained in:
PxlLoewe
2025-07-08 15:29:05 -07:00
parent 200d983ff8
commit 1e30e44111

View File

@@ -14,6 +14,13 @@ const initTransporter = () => {
if (!process.env.MAIL_USER) return console.error("MAIL_USER is not defined");
if (!process.env.MAIL_PASSWORD) return console.error("MAIL_PASSWORD is not defined");
console.log("Initializing mail transporter...", {
host: process.env.MAIL_SERVER,
port: process.env.MAIL_PORT,
user: process.env.MAIL_USER,
password: process.env.MAIL_PASSWORD,
});
transporter = nodemailer.createTransport({
host: process.env.MAIL_SERVER,
port: parseInt(process.env.MAIL_PORT),