added hook mail snippet