Using Nodemailer with NextJS – Failed to load resource: the server responded with a status of 500
I am trying to use NodeMailer with NextJS for my contact form. I created an endpoint Nodemailer API and tried to fetch POST to it. But I get a Server Internal 500 error.