Dear ____________,
Your presence at _________’s funeral service really meant a lot to me. He always talked fondly and respectfully about his supervisor and co-workers, and he would have appreciated the fact that you were all there for him. Thank you for your hugs and kind words of support.
Sincerely,
(YOUR NAME HERE)