Sometimes a person's gender is unclear from a name _ names like "Corey" or "Blake," are both common women's and men's names. If that is the case, do some investigating to determine gender from searching on LinkedIn or a company website. But if it remains ambiguous, simply write out the person's full name, dropping the title. For example, "Dear Corey Meyer."
Not only does this mean that you should focus on neutrality in your letter’s appearance (avoiding the use of colorful paper, brash logo designs, and artistic fonts), but it also means that you should employ a very low_key, unnuanced, and professional closing phrase. The best_case scenario is that the hiring manager, colleague, or connection won't even notice the closing.