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."
While a simple "Hi," "Hello," or even "Hey" is appropriate in casual correspondence, a more formal salutation is appropriate when you are emailing about a business_related matter, such as a cover letter, letter of recommendation, or inquiry letter.