title: NODEMAILER - Error: Missing credentials for "PLAIN"
body: <p>I have Nodemailer configured as such:</p>
  <pre><code>let transporter = nodemailer.createTransport({
      host: 'mail.notreforce.org',
      port: 587,
      secure: false, //true for 465, false for other ports
      auth: {
          name: env.email,
          pass: env.pasword,
      },
      tls:{
          rejectUnauthorized: false
      }
  });
  
  let mailOptions = {
      from: '&quot;Nguvu yetu&quot; &lt;test@notreforce.org&gt;', //sender address
      to: user.email, //list of receivers
      subject: &quot;Email verification&quot;,
      html: output,
  };
  
  //send mail with defined transport object
  transporter.sendMail(mailOptions,error=&gt;{
      if (error){
          return console.log(error);
      }
      res.status(200).json({msg:&quot;Email has been sent&quot;})
  })
  </code></pre>
  <p>But I get the error below</p>
  <pre><code>Error: Missing credentials for &quot;PLAIN&quot;
      at SMTPConnection._formatError (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:784:19)
      at SMTPConnection.login (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:448:38)
      at C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-transport\index.js:271:32
      at SMTPConnection.&lt;anonymous&gt; (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:215:17)
      at Object.onceWrapper (events.js:420:28)
      at SMTPConnection.emit (events.js:314:20)
      at SMTPConnection._actionEHLO (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:1313:14)
      at SMTPConnection._processResponse (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:942:20)
      at SMTPConnection._onData (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:749:14)
      at TLSSocket.SMTPConnection._onSocketData (C:\web-projects\Angular apps\TosEcommerce\backend\node_modules\nodemailer\lib\smtp-connection\index.js:195:44) {
    code: 'EAUTH',
    command: 'API'
  }
  </code></pre>
  <p>Have tried to replace the Key <strong>user</strong> and <strong>pass</strong> with actual value but the error still occurs. Any help is appreciated, thank you very much.</p>