How to Send Emails with Next JS and Nodemailer
UPDATED 2024 – I no longer recommend using Nodemailer for sending emails. Instead use Resend (resend.com), as they make it very easy to send emails and have a generous free tier.
In this video you’ll learn how to build a contact form in Next JS that sends emails using API routes and Nodemailer. I’ll be using a gmail account in this video, but it will work with other email providers as well.
Starting Files: https://github.com/nikitapryymak/next-js-nodemailer
Finished Files: https://github.com/nikitapryymak/next-js-nodemailer/tree/finished-files
Github: https://github.com/nikitapryymak
Support Me: https://www.buymeacoffee.com/nikitadev
Contact Me: nikitadev292@gmail.com
#nextjs #react #nodemailer