In most cases a person writes this type of letter to a judge after a sentencing trial. ... Any time a person writes a letter to the judge it should be polite, respectful and professional looking. Include a heading. At the top of the letter, write the judge's name and address of courthouse.