Animals such as sheep, cattle, horses, goats and pigs become infected when they eat food contaminated with anthrax spores.