Write the verb in brackets in the Past Perfect Tense.
She went to the post-office after she ... \(to write\) the letter.