Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read all emails from personal folders of Outlook.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00510727
Message ID:
00511338
Vues:
42
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?
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform