imap icon indicating copy to clipboard operation
imap copied to clipboard

Why this code return 500 error?

Open musaev-haybulla opened this issue 6 years ago • 1 comments

include "vendor/autoload.php";
use Ddeboer\Imap\Server;
use Ddeboer\Imap\SearchExpression;
use Ddeboer\Imap\Search\Email\From;

$server = new Server('imap.mail.ru');
$connection = $server->authenticate('***', '***');
$mailbox = $connection->getMailbox('INBOX');

$search = new SearchExpression();
$search->addCondition(new From("[email protected]"));

var_dump($mailbox->getMessages($search));

Why this code return 500 error?..

musaev-haybulla avatar Aug 27 '19 10:08 musaev-haybulla

As the error code says, error 500 depends on the server, not the client, so this very library isn't directly involved with the issue

Slamdunk avatar Aug 27 '19 10:08 Slamdunk