Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook MAPI
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
01023324
Message ID:
01023331
Vues:
17
Hi Geoff,

I adapted the following code for VFP from a VB.NET sample found here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;313793

Here is the VFP code:
LOCAL i, ;
   loOL AS Outlook.Application, ;
   loOLns AS Outlook.NameSpace, ;
   loOLsyncs AS Outlook.SyncObjects, ;
   loOLsync AS Outlook.SyncObject
*
loOL = CREATEOBJECT("Outlook.Application")
loOLns = m.loOL.GetNamespace("mapi")
loOLSyncs = m.loOLns.SyncObjects
FOR m.i = 1 TO m.loOLSyncs.Count
   loOLSync = m.loOLSyncs.Item(m.i)
   loOLSync.Start
ENDFOR
loOLsync = NULL
loOLsyncs = NULL
loOLns = NULL
loOL = NULL
HTH



>Hi
>
>Can someone tell me if it is possible to tell outlook to check its mail and download new email.
>
>I can login and read mail but cant seem to find how I get it to download mail on request.
>
>Ta very muchly
>Geoff Scott
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform