What is the role of the letter in today's world?

What is the role of the memo in today's world?

How do you know when to attach a letter/memo in an email or just write the info in the email?