const nodemailer = require('nodemailer'); const { smtpPool, smtpHost, smtpPort, smtpUsername, smtpPassword, smtpSecure, smtpRequireTLS, } = require('../config/config'); const smtpTransporter = nodemailer.createTransport({ pool: smtpPool, host: smtpHost, port: smtpPort, requireTLS: smtpRequireTLS, secure: smtpSecure, auth: { user: smtpUsername, pass: smtpPassword, }, }); module.exports = smtpTransporter;