Hi Ken,
Thanks the NewMailEx works!
but the Application.NewMailEx does not fire the event for a secondary
mailbox or inbox. The only way i've been able to do this is by searching all
folders with name"inbox" and then checking for any unread items in that
folder?
Do you have an altrenate suggestions for the second part?
"Ken Slovak - [MVP - Outlook]" wrote:
NewMail is not the best event to use for that, it doesn't tell you what came
in. Use ItemAdd on the Inbox folder's Items collection or use NewMailEx,
which passes an EntryID collection string of what was added. Use one of
those events, which let you know what came in.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Al_21_11" wrote in message
...
Hi I am trying to get the body and subject information when the
Application.NewMail event is fired.
this is what i have
Dim mailItem As Outlook.MailItem
mailItem.Subject()