add mail logging
This commit is contained in:
@@ -14,6 +14,13 @@ const initTransporter = () => {
|
|||||||
if (!process.env.MAIL_USER) return console.error("MAIL_USER is not defined");
|
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");
|
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({
|
transporter = nodemailer.createTransport({
|
||||||
host: process.env.MAIL_SERVER,
|
host: process.env.MAIL_SERVER,
|
||||||
port: parseInt(process.env.MAIL_PORT),
|
port: parseInt(process.env.MAIL_PORT),
|
||||||
|
|||||||
Reference in New Issue
Block a user