Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

488
Vistas
Error: self signed certificate NodeMailer

im trying to send an email with nodemailer but i get this error

> Error: self signed certificate
>     at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
>     at TLSSocket.emit (events.js:400:28)
>     at TLSSocket._finishInit (_tls_wrap.js:937:8)
>     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12) {   code: 'ESOCKET',   command: 'CONN' }

This is my code

async function sendEmail({ from, to, subject, html }) {
  try {
    const transporter = nodemailer.createTransport({
      host: mailer.host,
      port: mailer.port,
      secure: false,      
      tls: {
    ciphers: 'SSLv3',
        rejectUnauthorized: mailer.tls
      },
    });

    const info = await transporter.sendMail({ from, to, subject, html });

    console.log(info);
  } catch (error) {
    console.log(error);
  }
}

someone can help me please

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda