Monday 20 February 2017

sending emails w/ Nodemailer and xoauth2 'Gmail'

Hi guys, I am trying to use nodeJS with nodemailer and xoauth2 with gmail to send emails. I am still very new but i found a lot of resources with the tools I am using and even videos. However, there is an error when i run the file and i am completely stuck. I would seriously appreciate any feedback!This is the error msg: "Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 http://ift.tt/2d1Efv4 xxxxxxxxxxxxxx - gsmtp"This is the xoauth2 fields and followed the steps on the link: var transporter = nodemailer.createTransport({ service: 'Gmail', auth: { xoauth2: xoauth2.createXOAuth2Generator({ user: 'email', clientId: 'clientId', clientSecret: 'clientSecret', refreshToken: 'refreshToken' }) } })

Submitted February 21, 2017 at 12:20AM by tht_chico

No comments:

Post a Comment