Uses mailgun module to send the mail.
node ./index.js
The mail template is here.
Create a ./env/secrets.json
and ./env/users.json
.
{
"mailgun_private": "key-xxxxxxxxxxxxxxxxxxxx",
"mailgun_public": "pubkey-xxxxxxxxxxxxxxxxxx",
"mailgun_domain": "my-domain.com"
}
[
{
"name": "Random User #1",
"email": "[email protected]"
},
{
"name": "Random User #2",
"email": "[email protected]"
},
]