The condolence letter can be paired with a donation to a charity in lieu of flowers.
Dear {Recipient},
I am so sorry to hear of the passing of {the deceased}. {He/she} was such a wonderful person, and I will greatly miss {him/her}. Per your request, I have made a donation in {the deceased}'s name to {organization}. I am certain that {the deceased} would be proud of your decision to honor {him/her} in this way.
Yours,
{Sender}