Nodemailer not working after hosting on aws with nginx server.got error “error : {code: “EAUTH”, command: “API”}”
in my NextJS project, the nodemailer is configured as a server component. it works fine locally but not after being deployed in AWS with Nginx.
The folder structure is src/app/api/mail/route.ts
I’m using the application-specific password from Gmail.