throw error at mail error