nextjs-nodemailer A contact form in Next.Js with the API route to make a POST request to an Outlook/M365 SMTP server with Nodemailer
Copy the pages directory into your Next.Js repository.
The form has been created in contact.js. Adjust the inputs to your requirements. The post request is made in pages/api/nodemailer.js