In most cases, "Hi [Name]" will do. In more formal correspondence, like when you're writing to your boss, a hiring manager, or your professor, "Dear [Name]" is a better choice. In very formal correspondence, use "Dear Ms/Mr. [Last Name]," instead. Your appreciation letter doesn't have to be long or effusive.