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.
Reread the description of your task (for example, the advertisement of a job opening, instructions for a proposal submission, or assignment prompt for a course). Think about your purpose and what requirements are mentioned or implied in the description of the task. List these requirements. This list can serve as an outline to govern your writing and help you stay focused, so try to make it thorough. Next, identify qualifications, attributes, objectives, or answers that match the requirements you have just listed.