From 513cf89e3a51a2b37461969f584d16f7fa8f69df Mon Sep 17 00:00:00 2001 From: rota3015 Date: Sun, 5 May 2024 01:23:46 +0000 Subject: [PATCH] Added email configuration file --- config/email.config | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/email.config diff --git a/config/email.config b/config/email.config new file mode 100644 index 0000000..8ac0fdd --- /dev/null +++ b/config/email.config @@ -0,0 +1,13 @@ +const nodemailer = require('nodemailer'); + +const transporter = nodemailer.createTransport({ + host: process.env.CLOUDRON_MAIL_SMTP_SERVER, // Replace with your email server host + port: process.env.CLOUDRON_MAIL_SMTP_PORT, // Replace with your email server port + secure: false, // false for non-SSL, true for SSL/TLS + auth: { + user: process.env.CLOUDRON_MAIL_SMTP_USERNAME, // Replace with your email username + pass: process.env.CLOUDRON_MAIL_SMTP_PASSWORD // Replace with your email password + }, +}); + +module.exports = transporter; \ No newline at end of file