Jump to content

imap_search


darkhorn

Recommended Posts

This works:

<?php $m_search=imap_search ($m_mail, 'UNSEEN FROM "[email protected]"' ?>

but this not work:

<?php $m_search=imap_search ($m_mail, 'UNSEEN FROM "[email protected]" || "[email protected]"'); ?>

 

What is your suggestion?

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/175841-imap_search/
Share on other sites

This is a gmail specific thing.  Gmail doesn't like the way your passing multiples.  Have tried the comma, semi-colon, colon ... etc?

or, OR, ||, space, comma, semicolon, colon does not work. I can remove "From" and then add a filter in the further places but just wanted to know whether I can add an "or" or not.

Link to comment
https://forums.phpfreaks.com/topic/175841-imap_search/#findComment-926561
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.