php-ews
php-ews copied to clipboard
How to GetItems (SENT_ITEMS folder) and filter if given email address in 'ToRecipients' list
Hello,
I am working on a project and I need to retrieve emails sent to particular email address.
for now What I am doing is,
FindItem call for SENT_ITEMS folder, loop the result and collect each email itemID.
Then again do a single call GetItem with all these emailIDs(itemIDs). Then loop in the result of GetItems through each email data and filter with 'ToRecipients'.
This is not practical approach when there are hundreds of emails in sentItems.
Please let me know if there is any way to filter by 'email addres' in 'ToRecipients' while doing FindItem Or GetItem call.
Hello have you fixed it ? thanks