Tuesday 26 September 2017

Help Wanted: Accessing gmail from NodeJS

Hello.I have a Node app running that regularly checks a given gmail account and does things based on the email contents. Only this app uses this email (no one logs in to this email on the browser ie).I've been using nodemailer to connect to this account using SMTP with "Allow Less Secure Apps" turned on in the gmail settings. While this has worked well for a while, we're now in the process of upping our security and as part of this the "Allow Less Secure Apps" option will have to be turned off.How do I make my app avoid the use of this option? It needs IMAP and SMTP access as it uses gmail to both check for new mails and send some from the same address.

Submitted September 26, 2017 at 09:14AM by TheColossalItch

No comments:

Post a Comment