CCLE-3964 - Quickmail block doesn't install cleanly on PHP 5.4

* Replaced closure statement with simple for loop.
CCLE-4166 - Quickmail can be allowed for student, which allows students to see list of classmates