2024-05-05 01:23:46 +00:00

13 lines
540 B
Plaintext

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;