PHPMailer - PHP Package for Sending Emails

This chapter provides tutorial examples and notes about PHPMailer, a PHP package for sending emails. Topics include installing PHPMailer from source code package; using PHPMailer to call system 'sendmail' command; sending emails with SMTP and SMTPS protocols; adding email attachments; sending emails in HTML format.

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

Takeaways:

Table of Contents

 About This Book

 Introduction to Email

 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

 References

 Full Version in PDF/EPUB