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

* Replaced closure statement with simple for loop.