You could send a card first and if you are speaking to the person tell them that you are there if they need anything. There isn't much you can say when someone is grieving. Just letting them know...
That sentence needs a subject, but here are some possibilities with the subject "I":I accept your condolences (said by a male to a male) = ani mekabel et hatankhumim shelkhaI accept your condolences...