PHP

8 PHP Libraries for sending and parsing email

W
W3Tweaks Team
Frontend Tutorials
May 9, 2020 1 min read
8 PHP Libraries for sending and parsing email

Collection of PHP Libraries for sending and parsing email.

CssToInlineStyles class

PHP CssToInlineStyles is a class to convert HTML into HTML with inline styles. A library to inline CSS in email templates.

https://github.com/tijsverkoyen/CssToInlineStyles

Source Code

EmailReplyParser

EmailReplyParser is a PHP library for parsing plain text email content, based on GitHub’s email_reply_parser library written in Ruby. An email reply parser library.

https://github.com/willdurand/EmailReplyParser

Official website

Download .zip

Download .tar.gz

Email Validator

Small PHP library to valid email addresses using a number of methods. A small email address validation library.

https://github.com/nojacko/email-validator

Source Code

Fetch

Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.

https://github.com/tedious/Fetch

Source Code

Mautic

Mautic: Open Source Marketing Automation Software. The GitHub version is recommended for development or testing. The production package ready for install with all the libraries is at https://www.mautic.org/download.

https://github.com/mautic/mautic

Download

Source Code

Official site

PHPMailer

A full-featured email creation and transfer class for PHP.

https://github.com/PHPMailer/PHPMailer

Source Code

GitHub wiki

Gmail Example

Download .zip

Official Site

Stampie

Stampie is a simple API Wrapper for different email providers such as:

https://github.com/Stampie/Stampie

Source Code

API documentation

Official Site

Swift Mailer

Swift Mailer is a component-based mailing solution for PHP 7. It is released under the MIT license. Swift Mailer integrates into any web app written in PHP, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.

https://github.com/swiftmailer/swiftmailer

Source Code

Documentation

Official Site

Icons made by Freepik from www.flaticon.com