Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI Objects

Status
Not open for further replies.

CDavis

Programmer
May 5, 2000
155
US
I'm working on an Outlook system and want to parse e-mail information using MAPI. I'm hoping that someone can provide a list of all names for objects/information that are available. I'm using the following names that I'm using in the code example below:
.body
.sendername

o = createobject("outlook.application")
myNameSpace = o.GetNameSpace("MAPI")
myFolder = myNameSpace.GetDefaultFolder(5)
For I = 1 to myFolder.Items.Count
oMyMessage = myFolder.Items(I)
ThisForm.Edit1.Value = oMyMessage.Body
ThisForm.Text1.Value = oMyMessage.SenderName
ThisForm.Refresh
Wait "Press Any Key" Window
EndFor
o = .null.

I'm interested in knowing where to find a list of any other names available:

I've searched for the information but haven't found it in any of the threads or FAQ's

Thanks in advance for your help.

CDavis
 
First, if you are running VFP 7.0, the new Intellisense capabilities will show you a lot of the possibilities. Otherwise go to and go to the Office Solutions Development, and then choose the appropriate version of Outlook. With a little digging, you'll find the Object Model, and this will tell you more than you probably want to know. <g>

Rick
 
As a follow-up:

I've found a number of different names that will be helpful in extracting information from an e-mail. I can post them if anyone is interested

Does anyone know what name will provide the sender's e-mail address. SenderName does not provide the information I'm looking for.

Thanks -- cd.
 
Actually you should have the help file for Outlook on you machine, assuming you have Outlook. Search for vbaol (small L, not number 1) and see what you come up with. On my machine it's vbaol10.chm, but it depends on what version of Outlook you have. The only major problem, of course, is that it's written for Visual Basic and therefore you have to be able to translate the code to Fox.

Dave Dardinger
 
Dave,
Thanks for the tip -- I didn't find the file on my local machine but I'll search our servers. Our IT people are stingy with what they install.
 
I suppose they figure non-IT guys don't need to know stuff like that and a half meg of hard drive saved is a half meg earned.
Dave Dardinger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top