Skip to content

Commit

Permalink
transporter on julkisesti saatavilla
Browse files Browse the repository at this point in the history
  • Loading branch information
JoniMatias committed Dec 20, 2023
1 parent 89e6175 commit 51d900d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/javascripts/mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit 51d900d

Please sign in to comment.