Which greeting is correct for a letter?

 - Dear Uncle Ted,
 - Dear uncle Ted,
The first greeting is correct:
Its first word is capitalized, and it ends with a comma. Uncle Ted is capitalized because it is a proper noun.