Missing credentials for "PLAIN" nodemailer : <p>I'm trying to use nodemailer in my contact form to receive feedback and send them directly to an email. This is the form below.</p>

<pre><code>&lt;form method="post" action="/contact"&gt;
      &lt;label for="name"&gt;Name:&lt;/label&gt;
      &lt;input type="text" name="name" placeholder="Enter Your Name" required&gt;&lt;br&gt;
      &lt;label for="email"&gt;Email:&lt;/label&gt;
      &lt;input type="email" name="email" placeholder="Enter Your Email" required&gt;&lt;br&gt;
      &lt;label for="feedback"&gt;Feedback:&lt;/label&gt;
      &lt;textarea name="feedback" placeholder="Enter Feedback Here"&gt;&lt;/textarea&gt;&lt;br&gt;
      &lt;input type="submit" name="sumbit" value="Submit"&gt;
&lt;/form&gt;
</code></pre>

<p>This is what the request in the server side looks like</p>

<pre><code>app.post('/contact',(req,res)=&gt;{
let transporter = nodemailer.createTransport({
    service: 'gmail',
    auth: {
        user: 'user@gmail.com',
        password: 'password'
    }
});
var mailOptions = {
    from: req.body.name + '&amp;lt;' + req.body.email + '&amp;gt;',
    to: 'bantspl@gmail.com',
    subject: 'Plbants Feedback',
    text: req.body.feedback 
};
transporter.sendMail(mailOptions,(err,res)=&gt;{
    if(err){
        console.log(err);
    }
    else {

    }
});
</code></pre>

<p>I'm getting the error <code>Missing credentials for "PLAIN"</code>. Any help is appreciated, thank you very much.</p>
