Which greeting is correct for a letter?

 - Dear ms. Allen,
 - Dear Ms. Allen,
The first greeting is correct:
Its first word is capitalized, and it ends with a comma. Ms. Allen is capitalized because it is a proper noun.