a secret santa organizer
Randomly generates assignments and emails them to participants.
Usage:
Create a .env file with the following
SSL_PORT: The port to use for ssl.SMTP_URL: The mail server to attempt to log in at.EMAIL: The email to send the email out with.PASSWORD: The password to log in with.TEST_DESTINATION_EMAIL: The email to use for tests
Then modify santa.json with the following information:
"participants": A list of list pairs to create assignments for."moderators": A list of list pairs to send moderator information to."amount": The amount given to each participant for participation in the event.
For example
{
"participants": [
["Jakob", "jakob@example.com"],
["David", "david@example.com"],
["Edward", "edward@example.com"],
["Helen", "helen@example.com"]
],
"moderators": [
["Hera", "hera@example.com"],
["Zeus", "zeus@example.com"]
],
"amount": "60₯"
}To run a test with the test email, run
$ uv run test.pyTo send out emails, run
$ uv run smtp.py