Which greeting is correct for a letter?

 - Dear mr. Kelly,
 - Dear Mr. Kelly,
The first greeting is correct:
Its first word is capitalized, and it ends with a comma. Mr. Kelly is capitalized because it is a proper noun.