You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work with outlook office emails. The thing is that I want to bring only the emails from the last 5 days, but I don't get anything back.
If I use this line they bring me the data.
$aMessage = $aFolder->query()->limit(10)->get(); //return the data
But if I use this query it doesn't bring me anything.
$aMessage = $aFolder->query()->since(Carbon::now()->subDays(5))->get(); //This line not return the data
foreach ($aMessage as $oMessage) {
echo 'ID: '. $oMessage->getUid() ."\n";
echo $oMessage->getSubject() .' | The date of the mail is from : '. $oMessage->getDate() . "\n";
}
The text was updated successfully, but these errors were encountered:
I work with outlook office emails. The thing is that I want to bring only the emails from the last 5 days, but I don't get anything back.
If I use this line they bring me the data.
$aMessage = $aFolder->query()->limit(10)->get();
//return the dataBut if I use this query it doesn't bring me anything.
The text was updated successfully, but these errors were encountered: