With privilege escalation attacks on the rise I have been looking to implement some extra notifications on sites. This little gem is a great way to get an email whenever a user access role is changed. You can modify this easily to change the address it sends to.
Members can access the code below.