From the perspective of a female, you dot have to forget about her. If you do that you're only making her fears of not being able to talk to you and not be friends become true and that's the last thing she wants. Maybe somethng or someone did provoke her to break up with you and by the looks of the text, it was a hard decision but in her eyes it had to be done it order for you both to be happy in the long run.
Push your feelings aside and lock in in a box and be there for her until she either realizes what she's missing or you find a greater girl.
I hope this helped