Think of emails as letters. But there are differences between email and snail mail. For example, the subject line often substitutes for the salutation. Example:
When you write an email it is because you want to tell somebody something. The subject line says what it is that you want to talk about. In the body of the email you say what you want to tell that person.