Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapi
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Re: Mapi
Miscellaneous
Thread ID:
00172941
Message ID:
00191741
Views:
27
Klas,

Outlook has a much more capable object model than MAPI. I don't use Outlook. Outlook Express does fine for me. Here's some code that might help:
* GetAttachement() method
* When this method is called all of the attached files appear
* in the Windows temp folder. You can just read the files
* from there.

if ( this.oleMAPISession.SessionID = 0 )
   return
endif

with this.oleMAPIMessages
   this.mcAttachmentName = ""
   this.mcAttachmentPathName = ""
   this.mnAttachmentType = 0
   if ( this.mnAttachmentIndex < this.mnAttachmentCount - 1 )
      .AttachmentIndex = this.mnAttachmentIndex
      this.mcAttachmentName = .AttachmentName
      this.mcAttachmentPathName = .AttachmentPathName
      this.mnAttachmentType = .AttachmentType
   endif
endwith

return this.mcAttachmentName
>I can't make the get a hold of attachemnts from either OE or Outlook 98. I will check so that I have the laters version of the IE4, but I was just wondering if you hav tried to use the MAPI OCX to get attachments from Outlook 98 and, if, so I if it worked.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform