Skip to content
A PHP library/toolkit designed to handle all of your one-off e-mail needs under a MIT or LGPL license.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Fixed async crypto setup issue. Added ProcessState__InternalRead() to… Jul 24, 2018
support Fixed connection issue. Feb 2, 2019
test_suite Updated and minified Net_DNS2. Replaced HTML Purifier with TagFilter.… Dec 23, 2015 Minor changes. Jul 24, 2018

Ultimate E-mail Toolkit

A PHP library of functions designed to handle all of your one-off e-mail needs under a MIT or LGPL license. Instead of relying on the PHP mail() function, this library directly talks to SMTP and POP3 servers just as a regular e-mail client would. The result is a high level of reliability in delivery of e-mail messages to recipients. Functions like ConvertHTMLToText() and MakeValidEmailAddress() make it easy to do complex tasks such as convert ugly HTML input into beautiful plain-text output and analyze an e-mail address to automatically correct common typing mistakes. All of that while following the various RFCs surrounding e-mail.



  • Carefully follows the many IETF RFC Standards surrounding e-mail (RFC822, RFC2822, RFC1341, RFC1342, RFC1081, RFC1939, RFC2045, etc).
  • Relatively complete and comprehensive, yet easy-to-use SMTP, POP3, and MIME libraries. Fully MIME and Unicode-aware.
  • Easy to emulate various e-mail client headers.
  • SMTP::ConvertHTMLToText() to convert ugly HTML into really nice-looking plain text suitable for multipart e-mails.
  • SMTP::MakeValidEmailAddress() to correctly parse e-mail addresses and automatically correct common typing mistakes.
  • Has a liberal open source license. MIT or LGPL, your choice.
  • Designed for relatively painless integration into your project.
  • Sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively.


Documentation and examples can be found in the 'docs' directory of this repository.

You can’t perform that action at this time.