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

281
Views
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 answers
Answer question

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 Report

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 Report
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!