Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Message elements
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook Message elements
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00999322
Message ID:
00999322
Views:
43
Hello All,

I need to set up a prog to read a personal folder that I set up to hold all incoming and outgoing MS Outlook messages into a table. I have been using the snippet below from other UT messages:
oOutLookObject = CREATEOBJECT("Outlook.Application")
olNameSpace = oOutlookObject.GetNameSpace("MAPI")
oInbox = olNameSpace.Folders("Personal Folders").Folders("EZITREE from 2003-4")

?oInbox.Items.Count

For each o in oInbox.Items
    ? "To: " + o.To
    ? "Subject: " + o.subject
    ? "Body: " + o.Body    
    exit
Next o
This is great and gives me the subject and email contents. My very simple question is: what are the element names of the Outlook messages? I need to know how to get the date sent I sent the email and to whom, both name and email address. With received messages, I need the date I received it, who sent it to me and their email address

As above I have figured out 'To' is the person to who I sent the email.

Any help with this would be greatly appreciated.
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Next
Reply
Map
View

Click here to load this message in the networking platform