utils/mail-utils.js
function getSmtpTransporter() {
  return nodemailer.createTransport(
    smtpTransport({
      // service: 'tia',
      host: gT.suiteConfig.mailSmtpHost,
      secure: true,

      // secure : false,
      // port: 25,
      auth: {
        user: gT.suiteConfig.mailUser,
        pass: gT.suiteConfig.mailPassword,
      },

      // , tls: {
      //  rejectUnauthorized: false
      // }
    })
  );
}
function getSmtpTransporter() {
  return nodemailer.createTransport(
    smtpTransport({
      // service: 'tia',
      host: gT.suiteConfig.mailSmtpHost,
      secure: true,

      // secure : false,
      // port: 25,
      auth: {
        user: gT.suiteConfig.mailUser,
        pass: gT.suiteConfig.mailPassword,
      },

      // , tls: {
      //  rejectUnauthorized: false
      // }
    })
  );
}
function getSmtpTransporter ( ) { return nodemailer . createTransport ( smtpTransport ( { // service: 'tia', host : gT . suiteConfig . mailSmtpHost , secure : true , // secure : false, // port: 25, auth : { user : gT . suiteConfig . mailUser , pass : gT . suiteConfig . mailPassword , } , // , tls: { //  rejectUnauthorized: false // } } ) ) ; }
create reusable transporter object using SMTP transport Some antiviruses can block sending with self signed certificate. If this is your case -
create reusable transporter object using SMTP transport Some antiviruses can block sending with self signed certificate . If this is your case -