Email Sender App built using:
- Node.js
- Nodemailer
- Dotenv
- File System (fs)
- Path
- PM2 Process Management (daemon process manager)
- Node-Cron
Install dependencies, create an addressBook.json & .env file (the addressBook.json receives email data as an array), add the necessary user email & password data to the .env file, and change the appropiate variables in the emailSender.js file so that the app can grab files from the correct directory.
npm install
node emailSender.js
To run the app in the background, check to see if PM2 is installed locallly on your machine, if not, install it globally using the following command:
npm install pm2 -g
pm2 start emailSender.js
pm2 stop emailSender.js
pm2 status