Secret Santa matcher and email sender
-
Make sure you have python 3 installed.
-
Create a csv file in the working directory with all the participants, with the following format:
Participant Name, [email protected]
Refer to testdata.csv for example
-
Update the email message returned in sendEmail.constructMessage(), to suit your own group's needs.
-
In authenticationInfo.py, fill in your own login and password information for the email address you wish to send the emails from. Currently, gmail and gsuite addresses will work. If you want to use a non-gmail/non-gsuite address, you additionally need to update SMPTSERVER in sendEmails.py.
-
If using a gmail/gsuite account, allow less secure apps for the account.
-
Send the emails from the working directory with:
python main.py participantlist.csv
-
Enjoy your Secret Santa exchange! When it is over, you can check the file santa_solution. Each name in the list is the santa for the following name in the list. The last name in the list is the Santa for the first name.
This project is available under the MIT LICENSE