Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eventhandler and reference a new mail
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00596144
Message ID:
00596249
Vues:
19
>Thanks
>to avoid to search the complete inbox i use
>the follow method (after an tip in fox advisor)
>
>
>lo=CreateObject("Outlook.application")
> LoSpace=lo.GetNameSpace("MAPI")
> LoInbox=loSpace.GetDefaultFolder(6)
>loMsg=loInbox.Items(loInbox.Items.count)
>
>achim

That will get the last e-mail added to the Inbox. If the NewMail event fires because of multiple mail messages coming in, you could miss some of them. Just a reminder.

Good luck!
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform