PHPMailer

{{Use dmy dates|date=February 2024}}

{{Infobox software

| name = PHPMailer

| title =

| logo = File:PHPMailer.png

| logo caption =

| logo size =

| logo alt =

| screenshot =

| caption =

| screenshot size =

| screenshot alt =

| collapsible =

| author = Brent R. Matzelle{{Cite web|url=https://github.com/PHPMailer/PHPMailer#history|title = PHPMailer – A full-featured email creation and transfer class for PHP|website = GitHub|date = 21 November 2021}}{{Cite web|url=https://www.linkedin.com/in/bmatzelle|title=Brent Matzelle - Opyn Health | LinkedIn}}

| developer = (2001-2007) Brent R. Matzelle

(2007-2012) Andy Prevost{{Cite web|url=https://sourceforge.net/u/codeworxtech/profile|title=codeworxtech / Profile|website=sourceforge.net}}{{Cite web|url=https://phpmailer.pro/|title=PHPMailer Pro - Welcome|website=phpmailer.pro}}

(2010-2012) Jim Jagielski{{Cite web|url=https://github.com/jimjag|title=jimjag - Overview|website=GitHub}}

(July 2012- ) Marcus Bointon{{Cite web|url=https://sourceforge.net/u/coolbru/profile|title=coolbru / Profile|website=sourceforge.net}}

| released = {{Start date and age|2001}}

| discontinued =

| latest release version = {{wikidata|property|reference|edit|Q15616270|P348}}

| latest release date = {{wikidata|qualifier|raw|Q15616270|P348|P577}}; {{Time ago|{{wikidata|qualifier|raw|Q15616270|P348|P577}}}}

| latest preview version =

| latest preview date =

| status =

| programming language = PHP

| operating system = Cross-platform

| platform =

| size =

| language =

| language count = over 50

| language footnote =

| genre =

| license = LGPL

| alexa =

| website = {{URL|https://github.com/PHPMailer/PHPMailer}}

| standard =

| AsOf =

}}

Image:SMTP-transfer-model.svg

PHPMailer is a code library to send (transport) emails safelyIt is involved in sending emails safely without Email injection risk (not the html purification which is to prevent XSS) 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 ({{IETF RFC|821|2821|5321}}) and related issues (such as Carriage return) and vulnerabilities about email injection for spamming. Since 2001 PHPMailer has become one of the most popularWorxware claims 9 million MUA use PHPMailer: [http://www.freezepage.com/1388347420CFDXLIQEKU?url=http://phpmailer.codeworxtech.com/ Frozen web page] for the update [http://phpmailer.codeworxtech.com/ Dec2013 on phpmailer.codeworxtech.com]"PHPMailer for e-mail sending support" in the requirements of Mantis Bug Tracker solutions for these matters on PHP.

Features

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

History

  • PHPMailer was originally written in 2001 by Brent R. Matzelle as a SourceForge project.
  • Andy Prevost (codeworxtech) took over the project in 2007.
  • Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski.{{Cite web|url=https://code.google.com/a/apache-extras.org/p/phpmailer/|title = Google Code Archive - Long-term storage for Google Code Project Hosting}}
  • 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.
  • Late 2016, a serious security flaw was discovered in PHPMailer,{{cite web|url=https://www.bleepingcomputer.com/news/security/millions-of-websites-vulnerable-due-to-security-bug-in-popular-php-script/|title=Millions of Websites Vulnerable Due to Security Bug in Popular PHP Script|last=Cimpanu|first=Catalin|date=27 December 2016|website=Bleeping Computer|access-date=14 February 2024}}{{cite web|url=https://hackaday.com/2016/12/25/santa-knows-if-your-contact-form-uses-phpmailer-5-2-18/|title=Santa Knows If Your Contact Form Uses PHPMailer < 5.2.18|last=Umbelino|first=Pedro|date=25 December 2016|website=Hackaday|access-date=14 February 2024}} that had to be patched twice.{{cite web|url=https://www.techtarget.com/searchsecurity/answer/Why-did-the-PHPMailer-library-vulnerability-have-to-be-patched-twice|title=Why did the PHPMailer library vulnerability have to be patched twice?|last=Cobb|first=Michael|date=4 May 2017|website=TechTarget|access-date=14 February 2024}}

Popularity

Worx International Inc claimed in 2009{{Cite web | title=PHPMailer Pro - Welcome | url=http://phpmailer.codeworxtech.com | access-date=2025-03-26 | website=phpmailer.codeworxtech.com}}{{Cite web|url=http://www.freezepage.com/1388347420CFDXLIQEKU?url=http://phpmailer.codeworxtech.com/|title=FreezePage|website=www.freezepage.com}} that: "PHPMailer continues to be the world's most popular transport class, with an estimated 9 million [⁠message user agents⁠] worldwide. Downloads continue at a significant pace daily."

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.{{Cite web|date=2021-09-11|title=What is PHPMailer and how does it work with WordPress?|url=https://blogiestools.com/phpmailer/|access-date=2021-10-24|website=Blogies Tools|language=en-US}}

References