Email Tutorials - Herong's Tutorial Examples

https://www.herongyang.com/Email

© 2009-2024 Herong Yang. All rights reserved.

Email Tutorials This book is a collection of notes and sample codes written by the author while he was learning email systems. Topics include email message transmission protocols: SMTP, IMAP, POP3; secure connections with SSL/TLS protocols; managing Postfix server as MSA, MTA and MDA agents; managing Dovecot server for email retrieval with IMAP and POP3 protocols; Thunderbird and other email client tools; using PHPMailer to send emails in PHP scripts; email message format and headers. Updated in 2024 (Version v1.04) with PHPMailer tutorials.

Table of Contents

About This Book

Introduction to Email

What Is Email

What Is SMTP

What Is SMTPS

What Is IMAP

What Is IMAPS

What Is POP3

What Is POP3S

Postfix - Mail Transport Agent (MTA)

What Is Postfix

Install and Configure Postfix on CentOS

Test Postfix Server with "telnet" Client

SMTP Submission Service on Port 587 in Postfix

Archive Emails using "always_bcc" Setting in Postfix

Move /var/spool/postfix to New Location

"postconf" Command to Manage Postfix Configuration

Turn on Postfix Server Logging for Troubleshooting

SSL/TLS Secure Connections with Postfix Server

Dovecot - IMAP and POP3 Server

What Is Dovecot

Install and Configure Dovecot on CentOS

Test Dovecot IMAP Server with "telnet" Client

Test Dovecot POP3 Server with "telnet" Client

Keep Deleted Emails on Dovecot

Turn on Dovecot Server Logging for Troubleshooting

"doveadm" Command - Dovecot's Administration Utility

SSL/TLS Secure Connections with Dovecot Server

Email Client Tools - Mail User Agents (MUA)

"mailx" Command - Send and Read Emails

"Alpine" - Terminal-Based Email Client

macOS Mail Auto Configuration

macOS Mail Manual Configuration

Accept Certificate Exception in macOS Mail

Windows 10 Mail Configuration Failed

SSL/TLS Connection Issue in Windows 10 Mail

Mozilla Thunderbird - Mail User Agents (MUA)

What Is Mozilla Thunderbird

Thunderbird Installation on macOS and Windows

Thunderbird Configuration for POP3S and SMTP

Thunderbird to Accept POP3S Certificate Exception

Thunderbird Configuration for IMAPS and SMTP

Thunderbird Configuration for SMTPS Service

Manage Security Certificates on Thunderbird

Send Message Errors on Thunderbird

PHPMailer - PHP Package for Sending Emails

Install PHPMailer on CentOS Systems

Send Local Emails with PHPMailer

Send Remote Emails with PHPMailer

Use SMTPS Protocol with PHPMailer

PHP 5.6 and PHPMailer 5.2

Install PHPMailer from Source Code

Send Email Attachments with PHPMailer

Send Email in HTML with PHPMailer

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

Received: from ... by ... - SMTP Server Log

References

Full Version in PDF/EPUB

Keywords: Email, SMTP, MIME, POP3, IMAP, Tutorials