email.config 540 B

12345678910111213
  1. const nodemailer = require('nodemailer');
  2. const transporter = nodemailer.createTransport({
  3. host: process.env.CLOUDRON_MAIL_SMTP_SERVER, // Replace with your email server host
  4. port: process.env.CLOUDRON_MAIL_SMTP_PORT, // Replace with your email server port
  5. secure: false, // false for non-SSL, true for SSL/TLS
  6. auth: {
  7. user: process.env.CLOUDRON_MAIL_SMTP_USERNAME, // Replace with your email username
  8. pass: process.env.CLOUDRON_MAIL_SMTP_PASSWORD // Replace with your email password
  9. },
  10. });
  11. module.exports = transporter;