People can get infected if they inhale endospores or touch the milk , urine , feces , vaginal mucus , or semen of infected animals . The infection results from inhalation of endospores , and from contact with the milk , urine , feces , vaginal mucus , or semen of infected animals .