Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting sender's email from Outlook
Message
De
23/04/2003 23:47:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Getting sender's email from Outlook
Divers
Thread ID:
00780990
Message ID:
00780990
Vues:
43
From this code:
LOCAL loOutlook,loNS,loInbox,loMailItems,lnItem
loOutlook=CREATEOBJECT('Outlook.Application')
loNS=loOutlook.GetNameSpace('MAPI')
loInbox=loNS.Folders('Personal Folders').Folders('MyFolder')
loMailItems=loInbox.Items
CLOSE ALL
USE Email
DELETE ALL
FOR lnItem=loMailItems.Count TO 1 STEP -1
   loItem=loMailItems.Item(lnItem)
   APPEND BLANK
   REPLACE AddDate WITH loItem.CreationTime
   REPLACE Sender WITH loItem.SenderName
   REPLACE Subject WITH loItem.Subject
   REPLACE Notes WITH loItem.Body
   REPLACE To WITH loItem.To
NEXT
I need to be able to store the sender's email as well. Anyone knows how to do it?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform