It's a very difficult subject - to use 'to'or 'for'
My family is very important to me. That is the right sentence.
a) I sent a letter to Mary. In that sentence I wrote a letter to Mary and sent it to her in another city, country...
b) I sent a letter for Mary. In that one Mary wrote a...