From Wikipedia, the free encyclopedia
  (Redirected from Phpmailer)
Jump to navigation Jump to search
Original author(s)Brent R. Matzelle[1][2]
Developer(s)(2001-2007) Brent R. Matzelle

(2007-2012) Andy Prevost.[3][4]
(2010-2012) Jim Jagielski.[5]

(July 2012- ) Marcus Bointon[6]
Initial release2001; 20 years ago (2001)
Stable release
6.3.0[7] Edit this on Wikidata / 2021-02-19; 9 months ago
Written inPHP
Operating systemCross-platform
Available in47 languages
Blue arrows can be implemented using SMTP variations.

PHPMailer is a code library to send (transport) emails safely[8] and easily via PHP code from a web server (MUA to the MSA server).

Sending emails directly by PHP code requires a high-level familiarity to SMTP protocol standards (RFC 821, 2821, 5321) and related issues (such as Carriage return) and vulnerabilities about Email injection for spamming. From 2001 PHPMailer is one of the popular[9][10] solutions for these matters on PHP.


Partial list of features:

  • Plain text, HTML and multipart batched files
  • SSL and TLS (Secure Sockets Layer and Transport Layer Security)
  • SMTP, Qmail, POP3
  • Debugging system
  • PHP sendmail and mail methods
  • IDN
  • DKIM


  • PHPMailer was originally written in 2001 by Brent R. Matzelle as a SourceForge project.[1]
  • Andy Prevost (codeworxtech) took over the project in 2007.
  • Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.[11]
  • Marcus Bointon (coolbru on sourceforge) contributed to the project and joined as an admin in July 2012.
  • Marcus created his fork on GitHub.
  • Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer.
  • PHPMailer moved to the PHPMailer organization on GitHub.


Worx International Inc claimed in 2009[12][13] that: "PHPMailer continues to be the world's most popular transport class, with an estimated 9 million users worldwide. Downloads continue at a significant pace daily." (A user means a PHP code (MUA user)).

PHPMailer sends an SMTP extension command with the sent emails as below which can be used to get the usage report of PHPMailer on the ESPs (Email Service Providers):

This SMTP header may differ for different versions of PHPMailer, and can also be suppressed or modified by PHP code. It also comes with Integrated SMTP support which means you can send emails without a local mail server.[14]