0

I am trying to create email scheduling service for the user in a MERN stack application. I am using nodemailer for the emailing service. But I requires enabling "access to less secured apps" in google account settings. The users will not feel safe with that option.

const transporter = nodemailer.createTransport({
    service: 'gmail',
    auth: {
        user: userEmail,
        pass: userPassword
    }
});

This is the code. It requires client id, secret and access token for nodemailer to send mail without "allow to less secure apps enabled". But I don't think I can get that info. Is there any other way to solve this or any alternative?

Sai Charan
  • 31
  • 6
  • 1
    Why can't you get a client id, secret and access token? – Tom W Mar 12 '22 at 08:56
  • I was getting user gmail id and password from the frontend. I am not sure how to get client id and secret. Please share if you know any way to find out that. – Sai Charan Mar 17 '22 at 11:55

0 Answers0