954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

imap_search criteria

Hi

I need to set the filter in imap_search the condition is filter should take the yesterdays date dynamically

$gmail = imap_search($inbox,"ON 01-01-2012");

Thanks

vijaykavin10
Newbie Poster
23 posts since Jan 2011
Reputation Points: 10
Solved Threads: 1
 

echo $yesterday = date("j F Y", strtotime("-1 days"));
$emails = imap_search($mbox,'ON "'.$yesterday.'"');

vijaykavin10
Newbie Poster
23 posts since Jan 2011
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You