You might try, "I am so very sorry. I forgot to X and am very upset with myself for causing you difficulty through my inattention." Or If you are mad at someone else, You forgot to X and that action caused me to feel angry and as though I am unimportant to you."
Those are fairly vague as answers. However, without more details it is hard to be more specific.