Recently my cat died. He escaped my house and was attacked by a dog. Sadly he didn't survive.
I emailed a male acquaintance ( were not close friends, live long distance, communication is not daily). He's offered a listening ear if I need one. I told him the above ,and that I was feeling sad.
His response by email "My goodness. My heartfelt condolences."
My goodness is expressing surprise?