Skip to content

Secret Santa Script with family groupings which automatically sends email to everyone with their picks

Notifications You must be signed in to change notification settings

pizzato/secret_santa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

secret_santa

This secret santa script combines family groupings and automatically sends emails to everyone with their picks.

To run the script you must first write a file containing the names, emails and groupings of all participants of the secret santa.

This file must contain one person per line in the following format:

Name <email> Group Name

For instance, the following is a valid file format (see example.txt).

John Smith <[email protected]> Smith-Family
Mary Smith <[email protected]> Smith-Family
Abe B  <[email protected]>  Abe-Family
Alice <[email protected]>  Abe-Family
Bob M <[email protected]> Bob-Family
Cris C <[email protected]>  Cris-Family

To execute the script run:

python secret_santa.py example.txt

Where example is the file with the participants.

The program will run, make a pick, offer to show you the pick (if you are a participant, please say no - otherwise you will know who picked you).

The it will ask for your Gmail username and password. If you want to use another email server, please modify the following lines:

SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = 587

About

Secret Santa Script with family groupings which automatically sends email to everyone with their picks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages