PHPMailer Lite Examples

All of the links at the left are examples designed to show how to send emails using PHPMailer Lite version 2024.1.2.1 or higher. The advanced tests fully use Exception Handling and provide in-depth error messages.

All tests include:

  • Text message portion
  • HTML message portion
  • Inline graphic
  • Two attachments

PHPMailer Lite supports sending emails via SMTP, Sendmail and IMAP. The default is SMTP. It's automated too, if SMTP is not available, PHPMailer Lite will then attempt Sendmail. If Sendmail is unavailable, then IMAP is used.

You can download individual examples, or click on the last link and download the examples, graphics and download files in one single zip file.