From 51d900db1dd8e1c3ce44e6a6ed210d5de6065e7f Mon Sep 17 00:00:00 2001 From: Joni Rajala Date: Wed, 20 Dec 2023 13:36:54 +0200 Subject: [PATCH] transporter on julkisesti saatavilla --- public/javascripts/mailer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/mailer.js b/public/javascripts/mailer.js index a456c0b..68fda6a 100644 --- a/public/javascripts/mailer.js +++ b/public/javascripts/mailer.js @@ -14,8 +14,9 @@ const redirect = require('./redirect.js'); pass: process.env.SMTP_PASSWORD } });*/ +const transporter = null; if (process.env.SEND_EMAIL_NOTIFICATIONS === 'true') { - const transporter = nodemailer.createTransport({ + transporter = nodemailer.createTransport({ host: process.env.SMTP_HOST, port: process.env.SMTP_PORT });