Hey {Recipient},
I just wanted to drop you a line to say I'm sorry about {behavior}. I was out of line. You were absolutely right to get angry with me when I did that. Can I buy you a drink or take you out for dinner sometime to make it up to you?
Again, I'm sorry!
Yours,
{Sender}