2.1.0 • Published 4 years ago
santagifts v2.1.0
santagifts
This project can generate pairs for a secret santa and send emails to each participants.
Example
Just run:
yarn dlx santagifts config.json
With config.json
{
"subject": "Secret-santa",
"content": "Hey {src.name}, this year you will make a gift to {dest.name} (email: {dest.email})",
"sendEmails": true,
"logToStdout": false,
"people": [
{
"name": "John",
"email": "john@example.com"
},
{
"name": "Marc",
"email": "marc@example.com"
},
{
"name": "Lea",
"email": "lea@example.com"
},
{
"name": "Ann",
"email": "ann@example.com"
}
]
}
Sendgrid
Emails are sent through sendgrid.You'll need a SENDGRID_API_KEY
environnement variable to send mails.
You can set this env variable through a
.env
file in your working directory