Answer the question
In order to leave comments, you need to log in
The imap_search function often fails to find messages, what am I doing wrong?
The code:
$this->mbox = @imap_open("{imap.yandex.ru:993/imap/ssl}INBOX", $login, $pwd);
$arr = imap_search($this->mbox,'UNSEEN FROM "' . $imap_search . '" SUBJECT "'.$th.'"',SE_FREE,'UTF-8');
var_dump($arr); // $arr= false
UNSEEN
it, then it finds them. UNSEEN FROM ""
then it's 50/50, sometimes it finds them, and sometimes it's false. UNSEEN FROM "" SUBJECT ""
here most often it sends false. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question