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."
To save your reader time and to call attention to your strengths as a candidate, state your objective directly at the beginning of the letter. Example: I am seeking a position as a manager in your Data Center. In such a management position, I can use my master’s degree in information systems and my experience as a programmer/analyst to address business challenges in data processing. If you have been referred to a company by one of its employees, a career counselor, a professor, or someone else, mention that before stating your job objective.