Problem to scan

HuaMin Chen
HuaMin Chen used Ask the Experts™
on
Hi,
Is there one example to read each message, one by one, for one specific text string, within Sent folder of Outlook?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
doable using EWS Managed API, you can get items from the folder (Send Items) and then further parse the body.

https://msdn.microsoft.com/en-us/library/office/dn535506(v=exchg.150).aspx#bk_getewsma
HuaMin ChenProblem resolver

Author

Commented:
Can I have more details to this?
HuaMin ChenProblem resolver

Author

Commented:
Hi Sunil,
Which project inside this
https://1drv.ms/u/s!Ai8CrEskdewXlD0FolRCJ-iNp5nz

is to scan the Outlook Emails (one by one)?
Software Team Lead
Commented:
that's possible by using Microsoft.Office.Interop.Outlook namespace

Microsoft.Office.Interop.Outlook namespace
https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.aspx

try look at this article:

Access your Email within Outlook (Final Part) C#
http://www.programminghelp.com/dotnet/access-your-email-within-outlook-final-part-c/

what you need to do is to change the mail folder from:

OlDefaultFolders.olFolderInbox

Open in new window


to:

OlDefaultFolders.olFolderSentmail

Open in new window


as a start, try to include that into your own codes

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial