This is code from my article about getting email when Chef runs fail. It's more proof of concept for how to write a Chef handler than actual production ready stuff.
The code is licensed under a MIT-style license. See the LICENSE.md document for more information.