Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to read all emails from personal folders of Outlook.
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00510727
Message ID:
00511338
Views:
41
Ok ! I found how to do it. Thank to JVP Thread #479828 Message #481833.
oOutLookObject = CREATEOBJECT("Outlook.Application")
olNameSpace = oOutlookObject.GetNameSpace("MAPI")

* Now, you can get an object reference to any folder by name. I will use my inbox as an example

oInbox = olNameSpace.Folders("Personal Folders").Folders("Inbox")

*You can get the number of items:

?oInbox.Items.Count

*You can go through the items:

For each o in oInbox.Items
    ?o.subject
    ?o.Body
Next o


>>How can I read all emails from on folder of Outlook?
>>
>>I need to check if the email address of the 70 emails in one folder of Outlook exist in my .DBF. The folder is one of my personal folder.
>>
>>Any one done this before?
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform