Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting sender's email from Outlook
Message
From
23/04/2003 23:47:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Getting sender's email from Outlook
Miscellaneous
Thread ID:
00780990
Message ID:
00780990
Views:
45
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
Next
Reply
Map
View

Click here to load this message in the networking platform