send mail only ERROR happen