One way people get E. coli infections is through the food they eat. Most E. coli infections come from:  Undercooked meat. Unpasteurized, or raw, milk or juice. Water or food contaminated with feces.