If you are writing to someone who has a doctorate or medical degree, use the abbreviated form: "Dr." However, for other titles, such as professor, judge, rabbi, etc., write out the full title and capitalize it. For example, your salutation in a letter to a judge would be, "Dear Judge Barnard." Or, if your correspondence was with a rabbi, you might write, "Dear Rabbi Williams."
For uploaded or mailed cover letters, you do not need to include as much information as you would in an email message, because the heading of your cover letter includes your contact information. For a paper cover letter, use a formal business_style letter format which includes a heading, salutation, the body of the letter, closing, and your signature. Review these guidelines for what to include in your letter.