via_email: Fixed error processing