Skip to content

Python script for emailing secret santa participants

License

Notifications You must be signed in to change notification settings

kmacdonald76/secret-santa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

secret-santa can help you manage a list of secret santa participants by randomly assigning pairings and sending emails. It can avoid pairing couples to their significant other, and allows custom email messages to be specified.

Dependencies

docker app-generated password for google accounts

Usage

Copy config.yml.template to config.yml and enter in the connection details for your outgoing mail server. Modify the participants and couples lists and the email message if you wish.

cd secret-santa/
cp config.yml.template config.yml

Once configured, build image:

$> docker build . -t secret-santa

Then launch container:

$> docker run -it secret-santa

Calling secret-santa with config DEBUG: 1 will output a test pairing of participants.

    Test pairings:

    Chad ---> Bill
    Jen ---> Sharon
    Bill ---> Chad
    Sharon ---> Jen

To send out emails with new pairings, set DEBUG: 0 in config, rebuild image + launch container.

About

Python script for emailing secret santa participants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.4%
  • Dockerfile 2.6%