import nodemailer from "nodemailer";
import smtpTransport from "nodemailer-smtp-transport";

export const transporterSMTP = nodemailer.createTransport(
  smtpTransport({
    host: process.env.EMAIL_HOST, // 'mail.cupensystems.com',
    port: process.env.EMAIL_PORT ,
    secure: false,
    tls: {
      rejectUnauthorized: false,
    },
    auth: {
      user:process.env.EMAIL_USER ,
      pass:process.env.EMAIL_PASSWORD ,
    },
  })
);
