how to deal with a fight with a friend

it's really making me upset I know we are both wrong in some things but she doesn't see that I feel as if she had the intention to hurt me and that is why I wrote her an angry email anyway it started a big email war and I know we r both in the wrong but now she is just getting nasty. how do I fix this and stop feeling this way