Mycoplasma pneumoniae is spread through respiratory droplets when an infected person coughs or sneezes. It can also be transmitted via close contact. Children in school settings or daycare centers are particularly vulnerable due to the close quarters and frequent interaction.