Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

298
Visualizações
Error 421 in NodeMailer and not send mail

I am running a server using Nodemailer. Sometimes the api service respond me with 421.

"{"errorCode":421,
"erroText":"Error occurs",
"error":{"code":"EENVELOPE","response":"550 5.1.0 <xxx@xxxxxx.it> Connessione da 100.27.27.90 temporaneamente rifiutata / Connection from 100.27.27.90 temporarily rejected","responseCode":550,"command":"MAIL FROM"}}"

This is my code in node

var transporter = nodemailer.createTransport({
  host: "smtps.aruba.it",
  logger: true,
  debug: true,
  secure: true,
  port: 465,
  auth: {
    user: "xxx@xxxxx.it",
    pass: "xxxxx",
  },
  tls: {
    minVersion: "TLSv1",
    ciphers: "HIGH:MEDIUM:!aNULL:!eNULL:@STRENGTH:!DH:!kEDH",
  },
});

let mailOptions = {
  from: '"xxx" <xxx@xxx.it>',
  to: email,
  subject: "Riepilogo prenotazione",
  html: `...`,
};

transporter.sendMail(mailOptions, function (err, data) {
  if (err) {
    res.json({
      errorCode: 421,
      erroText: "Error occurs",
      error: err,
    });
  } else {
    res.json({
      errorCode: 200,
      status: "Appointment Created!",
    });
  }
});

transporter.close();

If I make 2 or 3 calls in a row, the service gives me error 421 with this description

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The SMTP 550 error being returned to nodemailer is saying that server smtps.aruba.it is temporarily rejecting the programs request to send data. I suspect it's either 1)the smtp server or 2)some conflict with your dev environment and localhost.

I've had the most success with nodemailer in conjunction with an email sandbox like mailtrap, which allowed me to "trap" the outgoing mail from my local dev environment for testing.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda