The reason I got started with Moodle was due to a requirement to set up an online skills maintenance module for 400 or so people from various organisations outside my own to renew a photo ID pass.
One of the things my team and I had to do was find a way to be automatically notified when a person had passed or failed. If passed, his or her photo and details had to be emailed to a certain person to enable the new photo ID to be produced, if the person failed another person had to be notified so he could get in touch and discuss how to move forward.
To that end, we wrote a simple script that worked well for us (and a couple of other Moodlers are now using it I believe

Now that the 400 or so have renewed their passe (roughly half did it online), we thought we'd try and incorporate it into the quiz setup so that it would be functionality available to any quiz (initially our site only had that one specific quiz and the script was written specifically for it). Although my team includes Flash developers we have had no prior experience with PHP or MySQL so it has been . . . fun!
We are now at the stage where we would like the community to test it and provide some feedback. Gustav in particular as, IMHO, I believe it would make a nice addition to the core module.
The screen shot in the next post shows how it looks. The attached file contains the relevant files and a step-by-step guide (readme.pdf) which includes a few things we still need to do. It has only been tested on 1.5.3+ so no doubt we'll have to tweak it for 1.6, people with a 1.6 install willing to test it much appreciated. At the moment the "pass" mark is 100% (we intend adding the ability to determine a pass mark during the quiz setup if a pass mark is in fact required for a given quiz) as a workaround at the moment if you just want an email notification to be sent no matter what the person scores use the "Fail" input.
I'm sure there will be other things that come out of your feedback. I'd appreciate it if you could take the time to have a play and let me know what you think and any bugs you find (solutions along with bug reports gratefully accepted

NOTE: as mentioned, we have no prior experience with PHP or MySQL so the usual caveats apply - a test server rather than a production server would be good and we take no responsibility if it causes the whole of the internet to go into meltdown!

Regards
H