# PHPMailer

> Full-featured email creation and sending library for PHP, with a built-in SMTP client

Source: https://talira.ai/catalog/phpmailer-f1gjng1q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / email clients](https://talira.ai/categories/libraries/email-clients), [languages / php](https://talira.ai/categories/languages/php)
- Licence: LGPL-2.1-only[^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [PHPMailer](https://talira.ai/orgs/phpmailer.md)

PHPMailer is a PHP library for creating and sending email. Its own SMTP client sends mail without a local mail server, with SMTP authentication (LOGIN, PLAIN, CRAM-MD5 and XOAUTH2) over SMTPS or STARTTLS. It builds multipart messages with HTML and plain-text parts, attachments and inline images, iCal events, multiple To, CC, BCC and Reply-To addresses, UTF-8 content and the usual encodings, and signs messages with DKIM or S/MIME. It validates addresses, guards against header injection and has error messages in over 50 languages. WordPress, Drupal and Joomla! are among the projects that use it.

## Links

- GitHub: https://github.com/PHPMailer/PHPMailer
- Docs: https://phpmailer.github.io/PHPMailer/

## Problems it solves

- send email from PHP over SMTP without a local mail server
- send HTML email with attachments from a PHP app
- sign outgoing email with DKIM in PHP

## Features

- built-in SMTP client, no local mail server needed
- SMTP auth with LOGIN, PLAIN, CRAM-MD5 and XOAUTH2 over SMTPS or STARTTLS
- HTML and plain-text multipart messages with attachments and inline images
- DKIM and S/MIME signing
- iCal events in messages
- address validation and header injection protection
- error messages in over 50 languages

## Limitations

- XOAUTH2 needs the separate league/oauth2-client package and a provider adapter.[^1]
- PHPMailer 5.2 is no longer supported, even for security updates.[^1]

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.87, momentum 0.63, community 1.00, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 79 commits in the last 90 days
- latest release v7.2.0 22 days ago
- 22.4k GitHub stars
- 313 contributors
- accepts sponsorship (Github, Patreon, Tidelift)
- has a company behind it

## Alternatives

- [Symfony Mailer](https://talira.ai/catalog/symfony-mailer-7x5krn7w.md): PHP component for creating and sending emails over SMTP or third-party email services

## Sources

[^1]: https://github.com/PHPMailer/PHPMailer/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/PHPMailer/PHPMailer/blob/master/src/PHPMailer.php (checked 28 Nov 2026)
