I am trying to send email through nodemailer but is not able to send email and showing following error.
{ [Error: Invalid login]
code: \'E
var transporter = nodemailer.createTransport({
service: 'Gmail',
auth: {
user: 'username',
pass: 'password'
}
});
Instead of username = enter your valid email id and password = your password
again an alert shows to your Gmail from google like
(Google will continue to block sign-in attempts from the app you're using because it has known security problems or is out of date. You can continue to use this app by allowing access to less secure apps, but this may leave your account vulnerable. )
you need to allow the access from other mailer
then it generates the response