I am trying to send a reset-password email from a noreply.myappname@gmail.com email to my users using a Gmail account and nodemailer inside a Cloud Function.
I have followed this sample code that is not working.
Here is the error i am getting :
So i have tried what is written : Please log in via your web browser and then try again .
I have also set the lessSecureApp to ON in my Gmail account.
I am receiving security alerts on my main Gmail account each time a Cloud Function is ran and this is still not working.
What am I doing wrong here ? (I have the exact same code as the sample, just configured the functions.config().gmailEmail and functions.config().gmailPassword with the ones of my account).
How to not have security alerts and how to make it work without the need of logging in a browser (even if it doesn't work either) which would be weird for a production app ?
