I am using the following code to fetch all mails since 1 day less -
$yesterday = date("Y-m-d", strtotime ("-1 days"));
$searchQuery = 'SINCE "'.$yesterday.'"';
if($this->open($folder)) {
$imap_search = imap_search($this->_imap, $searchQuery);
}
This works fine on my dev windows machine but when i put it on the test production server it doesn't work. I have even tried ALL as the search parameter but it does not seem to fetch anything. The connection to the mail account (the $this->_imap object) seems to be fine.
Any ideas?