jakebur01 Posted May 26, 2010 Share Posted May 26, 2010 I have a connection to my imap account and I would like to use imap_search. I have googled several different things and found stuff that would return the message id or numbers, but I do not know how to return the headers. How can I return headers after using this? $result = imap_search($mbox, 'FROM "[email protected]"'); Quote Link to comment https://forums.phpfreaks.com/topic/202974-imap_search/ Share on other sites More sharing options...
jakebur01 Posted May 26, 2010 Author Share Posted May 26, 2010 Something like this? foreach($result as $msgno) { $headers = imap_fetchheader($mbox, $msgno); } Quote Link to comment https://forums.phpfreaks.com/topic/202974-imap_search/#findComment-1063632 Share on other sites More sharing options...
jakebur01 Posted May 26, 2010 Author Share Posted May 26, 2010 I am trying to link up our e-mails with our little customer communication program I built. So when you pull up a customers account, it will do a imap_search on our employees mailboxes and list all the e-mails pertaining to the customer. Quote Link to comment https://forums.phpfreaks.com/topic/202974-imap_search/#findComment-1063661 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.