-
Clone the repo
git clone https://github.com/AldiAgeng/node-send-email-example.git
-
Install packages
npm install
-
Next Step
- Manage your google account - Go to security
- Enable 2FA in your gmail account
- Create app password - Select app : Mail - Select device : Other (Custom name) - Generate - Copy the app password
- Add .env file in the root directory - Add email and Recipients email in .env file - paste the app password to .env file
-
Run the app
npm start