Did you and M only date or have more serious relationship like gf/bf? If only dating and it was not exclusive, don't be sad and move on. Even you are gf/bf, be prepared that some men could change his mind later esp you two are long distance. This kind of men are not worth your time and energy. You will find the right one someday!