Sympathy cards should be sent as soon as possible after you've heard of the individual's passing.  If you knew the deceased but not the family, it's appropriate to send the card to the closest next-of-kin, such as the widowed spouse, eldest child, or remaining siblings.  For someone you know who's grieving for a loved one you weren't acquainted with, sending the card directly to them is the thing to do.