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."
Anything that you'd use in an informal communication is inappropriate for a business letter. This includes slang, text_speak, emojis, and anything off_color or casual. If you're used to communicating mostly with friends, family, or even co_workers you've worked with for a long time, an appropriate closing for a business letter will probably feel pretty stilted at first. Don't worry about it – your colleague or business associate won't feel that way when he or she reads your correspondence. What seems unnatural to you will feel respectful and polite to the recipient.