imap
imap copied to clipboard
Why this code return 500 error?
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?..
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