Added email failure notifications support.