This app choose secret santa for each people and send them mail to keep it secret.
Name | Default value | Description |
---|---|---|
MAIL_HOST | / | Mail server host |
MAIL_PORT | 465 | Mail server port |
MAIL_USER | / | Mail server username |
MAIL_PASSWORD | / | Mail server password |
MAIL_SUBJECT | 🎅 Secret Santa 🎅 | Mail content |
MAIL_CONTENT | You are the secret santa of {{people}} ! | Mail content |
SAVE_MAILS | false | save mails in mails directory |
DEBUG | false | Print mails instead of sending them |
- Add environment variables MAIL_HOST, MAIL_USER, MAIL_PASS (.env file supported)
- Add a santas.csv file (name;email;blacklist) at root. (Blacklist is the list of names or emails separated with
,
and is optional) - Run
yarn start
- Add environment variables DEBUG=true (.env file supported)
- Add a santas.csv file (name;email) at root.
- Run
yarn start