Full-featured email creation and sending library for PHP, with a built-in SMTP client
open sourceLGPL-2.1-onlyfree
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.
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
Alternatives
The same job
These do what PHPMailer does.
- Symfony Mailer PHP component for creating and sending emails over SMTP or third-party email services
