This is a script that I found useful for a Secret Santa I had last December. It requires a teensy bit of PHP knowledge to setup but it should be smooth sailing for the average somewhat-code-savvy user.
Download Secret Santa (v1.0 – December 2007)
Demo
Setup
- Download the script.
- Edit the array at the top of the file. Make sure names properly match emails and that emails are typed correctly. Incorrect emails will be the demise of this script!
- Try it out, by default it will not send emails. You can preview the “randomness”; realize that when it’s actually going to send emails you will not see how people are paired up.
- To make the script send email set
$nomail
to
false.
Ta-da! Now you’ve got a super awesome secret santa script.
Changelog
- v1.0 – it has been created …
Kyle Rove said:
Worked perfect. I spiced it up a bit by taking one of the email stationary themes Apple provides in Mail.app, put my own picture into it, pulled out the source of the multipart email message and placed it into the script. Looks most excellent.
Thank you so much. I started to make my own script and realized that I need not reinvent the wheel. Glad I found this. :D
aphexddb said:
About 10 lines into making my own secret santa script I decided to Google for one, well done. It is in fact, super awesome.
Ben said:
Ah it works … but I’ve definitely got to improve it. It can still get stuck in some kind of infinite loop :/
BOOURNS.
Pingback: benwatts.ca » Unleashing SecretSantaBot 2