php-imap
php-imap copied to clipboard
Issue reading email , shows in total variable 2 but item array empty
When i read unseen emails from Inbox it shows in total but item array empty so it didn't read the content of emails
The code // Get the account where you want to read emails $client = Client::account('usgit.support'); $client->connect();
// Get the inbox folder
$folder = $client->getFolder("INBOX");
// Get all unseen messages since the current date
// $unseen = $folder->search()->unseen()->since($currentDate)->get();
$unseen = $folder->search()->unseen()->get();
dd($unseen);
Following is the result Webklex\PHPIMAP\Support\MessageCollection {#10791 ▼ #total: 2 #items: [] #escapeWhenCastingToString: false }
Version "php": "^8.0.20", "webklex/laravel-imap": "^4.1",