Email Tutorials - Herong's Tutorial Examples - v1.04, by Herong Yang
Email Message Format and Example
This section describes the email message format. A very simple email message is also provided.
The email message format can be described by the following rules:
Here is a simple email message example. It contains 6 basic header lines and 1 line of message body.
Return-Path: <joe@herongyang.com> Delivered-To: herong@herongyang.com Received: from 127.0.0.1 (localhost [127.0.0.1]) by mail.herongyang.com (Postfix) with ESMTP id 5EABD266002B for <herong>; 15 Nov 2023 06:19:34 -0500 (EST) Message-Id: <20231113111946.5EABD266002B@mail.herongyang.com> Date: 15 Nov 2023 06:19:34 -0500 (EST) From: joe@herongyang.com Hello world!
Note that most email client tools are not displaying email messages directly to you. Technical email headers are removed. Message contents are re-formatted. To see the original email messages, you need to use the "view message source", "view raw message", or similar function.
See next tutorials for examples of email message headers.
Table of Contents
Postfix - Mail Transport Agent (MTA)
SSL/TLS Secure Connections with Postfix Server
Dovecot - IMAP and POP3 Server
SSL/TLS Secure Connections with Dovecot Server
Email Client Tools - Mail User Agents (MUA)
Mozilla Thunderbird - Mail User Agents (MUA)
PHPMailer - PHP Package for Sending Emails
►Email Message Format and Headers
►Email Message Format and Example
What Are Email Message Headers
Content-Type: text/html - HTML Content
Content-Type: multipart/alternative; boundary="..."
Content-Type: multipart/mixed; boundary="..."
Content-Transfer-Encoding: 8bit - Non-ASCII Content
Content-Transfer-Encoding: base64 - Base64 Encoded Content
Content-Transfer-Encoding: quoted-printable - 7-Bit Encoding
Subject: =?...?= - 7-Bit Encoding
From: ... - Email "From" Address
To: ... - Email "To" Addresses