-
-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Labels
Description
[Webklex\IMAP\Exceptions\GetMessagesFailedException]
Object of class Closure could not be converted to string
$EmailClient = array (
'host' => 'outlook.office365.com',
'port' => 993,
'encryption' => 'ssl',
'validate_cert' => true,
'username' => 'xxx',
'password' => 'xxxxxxx',
'protocol' => 'imap'
);
$oClient = new Client($EmailClient);
$oClient->connect();
/** @var \Webklex\IMAP\Folder $oFolder */
if($oFolder = $oClient->getFolder("INBOX")){
$LastEmailReadDateTime = '2018-10-05 13:49:56';
$aMessage = $oFolder->messages(null)->since($LastEmailReadDateTime)->all()->get();
echo "\n" . $oFolder->fullName;
echo "\n aMessage " . count($aMessage);
}