Mix bread, cheese, ham, and onion; spread in 9x13. Whisk eggs and milk, and pour over top. Cover with foil and freeze. Thaw before baking. Bake uncovered at 375 for 45 minutes.