Answer:
In the sentence I wrote a letter to my parents, letter is the direct object of the verb and parents is the indirect object. The distinction is that the direct object "receives" the action of the verb directly, while the indirect object "receives" the action indirectly, through a preposition ( which may be understood in some constructions).