title: Error: Invalid login: 535-5.7.8 Username and Password not accepted
body: <p>The code below is perfect to send emails using node.js code/program. However, still getting error mentioned in the title.</p>
  
  <pre><code>var nodemailer = require('nodemailer');
  
  var transporter = nodemailer.createTransport({
    service: 'gmail',
    auth: {
      user: 'haideryaqoobengr@gmail.com',
      pass: '**********'
    }
  });
  
  var mailOptions = {
    from: 'haideryaqoobengr@gmail.com',
    to: 'haideryaqoob720@gmail.com',
    subject: 'Sending Email using Node.js',
    text: 'That was easy!'
  };
  
  transporter.sendMail(mailOptions, function(error, info){
    if (error) {
      console.log(error);
    } else {
      console.log('Email sent: ' + info.response);
    }
  });
  </code></pre>