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

283
Vistas
Using Nodemailer - Email is sent but not recieved

I am using a custom email on a custom domain and trying to send emails to clients. On the node side the response shows the email is sent but can't see it on the reciever's input box.

var transporter = nodemailer.createTransport({
host: 'mail.example.com', 
port: '587',  
secure: true , 
auth: {
user: "noreply@example.com", 
pass: 'password' },
tls:   rejectUnauthorized:false , 
           }
            
            
       });
transporter.sendMail(mailOptions,function(error,info){
                    if (error) return 400; 
                    
                    else {
                        
                        console.log(info) ;
                        return 200 ; 
                    }
           });
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Are you sure this is the code that is able to send messages? There is a { missing in key tls.

And try changing the port to 465 (Though it's deprecated)

about 4 years ago · Juan Pablo Isaza Denunciar

0

found out the issue. idk why, but when I added the optional parameter in transporter: name: "www.domain.com" it started working.

about 4 years ago · Juan Pablo Isaza Denunciar
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