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

302
Visualizações
Can't send any email with Nodemailer package in Node js

I'm trying to send an email from my Node js application with nodemailer package, but I'm getting an unexpected problem. I've just read several topic about the same problem and they worked for my gmail account, but actually I would like to use this service with an Aruba email. This is the interested piece of code:

const nodemailer = require('nodemailer');
//const smtpTransport = require('nodemailer-smtp-transport');
const config = require('./config.json');
const transporter = nodemailer.createTransport({
    host: "smtps.aruba.it",
    logger: true,
    debug:true,
    secure: true,
    port: config.Mail.MAIL_PORT,
    auth: {
      user: config.Mail.MAIL_ADDRESS,
      pass: config.Mail.MAIL_PASSWORD 
    },
    tls:{
      minVersion: 'TLSv1',
      ciphers:'HIGH:MEDIUM:!aNULL:!eNULL:@STRENGTH:!DH:!kEDH'
    }
});

    let mailOptions = {
        from: config.Mail.MAIL_ADDRESS,
        to: config.Mail.MAIL_DEST,
        subject: config.Mail.MAIL_CONFIRM_SIGIN_SUBJECT,
        text: "Something"
 
 
  };
 
transporter.sendMail(mailOptions, function(error, info){
 
 
      if (error) {
 
 
        console.log(error);
 
 
      } else {
 
 
        console.log('Email sent: ' + info.response);
 
 
      }
 
 
    });

The console output is this one:

{
  code: 'EAUTH',
  response: '535 5.7.0 bkvxnow6m4Pmf ...authentication rejected',
  responseCode: 535,
  command: 'AUTH PLAIN'
}
[2022-04-05 15:17:30] INFO  [ljqdiec7p84] Connection closed
about 4 years ago · Juan Pablo Isaza
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