Uncommented the try, except code, so that a failed email send will trigger an error.