Dear _________,
Thank you for acting as my sounding board last week. I know I rambled on and on about the crisis I was in, but you listened patiently and offered advice that was both thoughtful and considerate. I want you to know just how much I appreciated your being there for me at a time when I needed it most. You are a true friend.
(YOUR NAME HERE)