Y. enterocolitica is transmitted through the consumption of contaminated food or water, particularly raw or undercooked pork, as well as through contact with infected animals.