Here's why:
* Subject: The subject of a sentence is the person, place, or thing that performs the action.
* Verb: The verb is the action word ("put").
* Object: The object is the thing that receives the action ("envelope").
So, the letter is the thing being put into the envelope.