Nodemailer/Gmail - What exactly is a refresh token and how do I get one?
I'm trying to do a simple contact form in a node app, using nodemailer . I want all the msg to be sent from a gmail account I made for this purpose, to my personnal mail. on the client side, all I do is to get the name/mail/message of the customer and send it to the server. It works fine locally but fails to work when deployed (on heroku btw). After a quick search, it seems I have to generate a ClientId and ClientSecret from Google Developers Console - which I did - but when it comes to generating a "refresh token" iI'm completely lost. var smtpTransport = nodemailer.createTransport("SMTP",{