Here is a simple code example how send emails from NodeJS application using Nodemailer and Sendgrid
- Clone this Repository
- Configure Environment variables
- NODE_SENDER_MAIL ( From which Application send Mails for Nodemailer )
- NODE_MAIL_SENDGRID_SENDER_MAIL (Sendgrid verified sender Email)
- NODE_SENDER_MAIL_PASSWORD (Sender Email Password for Nodemailer)
- NODE_MAIL_RECEIVER (Receiver Email)
- NODE_SENDGRID_KEY (Sendgrid API key)
- Run this Command
>> npm install >> npm run dev
Made With โค by Nilanjan Deb