Writing a letter or typing an email in Korean

If I want to write a letter or type an email to someone, how do I say “Dear” in Korean. Also, I would like to know how to end the letter or email in Korean. I want to know about these words.