Is it possible to get the unread messages of the last 7 days. ? I have
$result = imap_sort($imap, SORTDATE, 1,"UNSEEN");
Is it possible to get the unread messages of the last 7 days. ? I have
$result = imap_sort($imap, SORTDATE, 1,"UNSEEN");
I found the answer:
$date = date ( "d M Y", strToTime ( "-7 days" ) );
$search_criteria = "SINCE \"$date\""." UNSEEN";