Send An Email To The Site Admin When A User Role Is Changed

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.

To access this content, you must purchase Code Ninja Membership.