IMAP server (library) to serve emails to an email client, written in pure PHP.
IMAP server (library) to serve emails to an email client, written in pure PHP.
The d
in SMTPd
stands for Daemon. This script can run in background like any other daemon process. It's not meant for running as a webapplication.
Believe it or not, email is still the killer feature of the Internet. There are tons of projects for accessing and fetching emails from an IMAP/POP3 server. But there are not so many providing a programmatically interface to serve emails to an email client.
With this interface you can do something like this for your app users:
+--------------+ +-------+ +------------------------+ +------+
| Your PHP App +---> | IMAPd +---> | MUA (like Thunderbird) +---> | User |
+--------------+ +-------+ +------------------------+ +------+
This is useful when you have a messaging application written in PHP but no graphical user interface for it. So your graphical user interface can be any email client. Thunderbird for instance.
The project outlines as described in my blog post about Open Source Software Collaboration.
Zend\Mail
with a better solution.The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to composer.json:
composer require thefox/imapd
See example.php
file for more information.
NOT_IMPLEMENTED
. Implement these.@TODO
are to be complete the PHP Code Sniffer tests before releasing a new version.Zend\Mail