Email Tutorials - Herong's Tutorial Examples - v1.04, by Herong Yang
To: ... - Email "To" Addresses
This section provides an email message example with 'To: ...' header to specify a list of recipients with their names and email addresses of the email message.
What Is "To: ..." Email Header? "To: ..." specifies a list of primary recipients of the email message, The recipient list is provided in the following format:
recipient, recipient, ...
where:
recipient = [display_name] <email_address> | email_address
display_name = plain_name | =?encoded_name?=
plain_name = enclosed in double quotes to protect comma
email_address = account@domain_name
examples:
To: herong@herongyang.com, chloe@herongyang.com
To: Herong Yang <herong@herongyang.com>,
"=?utf-8?Q?Dion, Chlo=C3=A9?=" <chloe@herongyang.com>
Here is a simple example of email message with a list of 2 recipients with encoded and quoted display names in the "To" header.
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; 15 Nov 2023 06:19:34 -0500 (EST) Message-Id: <20231113111946.5EABD266002B@mail.herongyang.com> Date: 15 Nov 2023 06:19:34 -0500 (EST) To: Herong Yang <herong@herongyang.com>, "=?utf-8?Q?Dion, Chlo=C3=A9?=" <chloe@herongyang.com> Hello world!
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