[IMP ]add failure_reason field and counting number of fail mail

Hello,
I have added failure_reason field and counting number of fail mail
Thanks.
avo