Oh, this one is sure to start some wars in some places.
Grammatically, we are taught "never to split infinitives" which means "She told me not to smoke." is more correct. It's also the more common way of saying that type of sentence. "X told me not to V."
However, there's a lot of disagreement among English experts about whether or not splitting infinitives is wrong.
From my perspective, we split infinitives all the time, so I would say that both are correct. However, we sometimes prefer one version (split or not) over others.
In short, don't worry too much about it unless you have a job where their chosen style guide forbids splitting infinitives.