Description
Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.
Fetch alternatives and similar libraries
Based on the "Email" category.
Alternatively, view Fetch alternatives based on common mentions on social networks and blogs.
-
CssToInlineStyles
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails. -
phpList
This module is the core of phpList 4. Join discussion at the community forum: https://discuss.phplist.org/ -
Bounce Mail Handler
Bounce Mail Handler for PHP | This is a "reboot" of PHPMailer-BMH from WorxWare.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Fetch or a related project?
Popular Comparisons
README
Fetch 
Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.
Installing
N.b. A note on Ubuntu 14.04 (probably other Debian-based / Apt managed systems), the install of php5-imap does not enable the extension for CLI (possibly others as well), which can cause composer to report fetch requires
ext-imap
sudo ln -s /etc/php5/mods-available/imap.ini /etc/php5/cli/conf.d/30-imap.ini
Composer
Installing Fetch can be done through a variety of methods, although Composer is recommended.
Until Fetch reaches a stable API with version 1.0 it is recommended that you review changes before even Minor updates, although bug fixes will always be backwards compatible.
"require": {
"tedivm/fetch": "0.7.*"
}
Pear
Fetch is also available through Pear.
$ pear channel-discover pear.tedivm.com
$ pear install tedivm/Fetch
Github
Releases of Fetch are available on Github.
Sample Usage
This is just a simple code to show how to access messages by using Fetch. It uses Fetch own autoload, but it can (and should be, if applicable) replaced with the one generated by composer.
use Fetch\Server;
use Fetch\Message;
$server = new Server('imap.example.com', 993);
$server->setAuthentication('username', 'password');
/** @var Message[] $message */
$messages = $server->getMessages();
foreach ($messages as $message) {
echo "Subject: {$message->getSubject()}", PHP_EOL;
echo "Body: {$message->getMessageBody()}", PHP_EOL;
}
License
Fetch is licensed under the BSD License. See the LICENSE file for details.
*Note that all licence references and agreements mentioned in the Fetch README section above
are relevant to that project's source code only.