Created
May 24, 2021 13:40
-
-
Save calvin-puram/6fa69106fabd892fcbc3c67a308c24fa to your computer and use it in GitHub Desktop.
Sending Emails in Nodejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Objective: we want to send email to user upon registration welcoming them. | |
packages to use: nodemailer to send emails https://nodemailer.com/ and mailtrap to trap the messages sent in developement and not sent to the users https://mailtrap.io/ | |
steps: | |
1 install nodemailer to your nodejs project https://www.npmjs.com/package/nodemailer | |
2 create a new file in your utils folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment