Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

483
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!