title: Nodemailer send mail using gmail account showing response code 534-5.7.14
body: <pre><code>// create reusable transporter object using the default SMTP transport
  
  transporter = nodemailer.createTransport({
      host: 'smtp.gmail.com',
      port: 465,
      secure: true, 
      auth: {
          user: 'yourEmail', 
          pass: 'yourPassword' 
      }
  });
  </code></pre>
  
  <blockquote>
    <p>{ [Error: Invalid login] code: 'EAUTH', response: '534-5.7.14
    
    Please log in via your web browser and\n534-5.7.14 then try
    again.\n534-5.7.14 Learn more at n534 5.7.14
    <a href="https://support.google.com/mail/answer/78754" rel="nofollow noreferrer">https://support.google.com/mail/answer/78754</a> 77sm13524842wml.20 - g
    smtp', responseCode: 534 }</p>
  </blockquote>