mail.js 321 B

1234567891011121314
  1. const nodemailer = require('nodemailer');
  2. const config = require('../config');
  3. const transporter = nodemailer.createTransport({
  4. host: config.MAIL_HOST,
  5. port: config.MAIL_PORT,
  6. secure: config.MAIL_SECURE,
  7. auth: {
  8. user: config.MAIL_USER,
  9. pass: config.MAIL_PASSWORD,
  10. },
  11. });
  12. module.exports = transporter;