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

336
Views
Error: Invalid login: 535-5.7.8 Username and Password not accepted. while using nodejs

I am getting error "Invalid login: 535-5.7.8 Username and Password not accepted" while trying to send mail using nodejs. I have double checked my email and password

code: 'EAUTH', response: '535-5.7.8 Username and Password not accepted.

var nodemailer = require('nodemailer');

var transporter = nodemailer.createTransport({
  service: 'gmail',
  auth: {
    user: 'piyush212@gmail.com',
    pass: '***********'
  }
});

var mailOptions = {
  from: 'piyush212@gmail.com',
  to: '@gmail.com',
  subject: 'Sending Email using Node.js',
  text: ' hello world'
};

transporter.sendMail(mailOptions, function(error, info){
  if (error) {
    console.log(error);
  } else {
    console.log('Email sent: ' + info.response);
  }
});
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!