- Install dependencies
npm i
- Add your SMTP creds into
.env
SMTP_LOGIN=*login*
SMTP_PASSWORD=*password*
SMTP_PORT=*port*
SMTP_SERVER=*server*
- Create your
config.json
in root folder with following structure (make sure to escape JSON and minify HTML):
{
"from": "\"*sender name*\" <*sender e-mail*>",
"subject": "*subject*",
"html": "*body html*"
}
- To run the application simply use
npm start /path/to/csv config.json
- Enjoy!😎
More info could be found by running npm start -- --help
P.S. Hope you don't mind leaving a ⭐