Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eventhandler and reference a new mail
Message
 
 
To
19/12/2001 12:03:01
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00596144
Message ID:
00596249
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform