Property of the order of an element

Let G be a group, m∈N, and g∈G be an element such that gm=e. Prove that o(g)∣m, where o(g) is the order of g.