Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: Mapi
Divers
Thread ID:
00172941
Message ID:
00191741
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform