DEV Community

Discussion on: Setup a contact form in React that sends email using Node.js

Collapse
 
y1a2s3h4 profile image
Yash Purohit

Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 support.google.com/mail/?p=BadCred... o13sm2178229pfp.26 - gsmtp
at SMTPConnection._formatError (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:774:19)
at SMTPConnection._actionAUTHComplete (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:1513:34)
at SMTPConnection. (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:540:26)
at SMTPConnection._processResponse (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:932:20)
at SMTPConnection._onData (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:739:14)
at TLSSocket.SMTPConnection._onSocketData (F:\Contact Form\backend\node_modules\nodemailer\lib\smtp-connection\index.js:189:44)
at TLSSocket.emit (events.js:210:5)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at TLSSocket.Readable.push (_stream_readable.js:224:10) {
code: 'EAUTH',
response: '535-5.7.8 Username and Password not accepted. Learn more at\n' +
'535 5.7.8 support.google.com/mail/?p=BadCred... o13sm2178229pfp.26 - gsmtp',
responseCode: 535,
command: 'AUTH PLAIN'

i got this error

Collapse
 
reesharper profile image
Rees Harper

Google most likely blocked your login due to security concerns

Collapse
 
aktech profile image
Code Ware Technologies

Turning on less secure Apps solved this error for me. Good luck.
myaccount.google.com/lesssecureapps