Hi,
I am try to read all email item from outlook.
Using JACOB api i am read all folders from outlook. what i want is i want to read only
the mail items from inbox and other custom folders and skip other contact, calendar
folders. How can i implement this using JACOB.

How to use MailItem attribute.

Using this code

Dispatch items = Dispatch.get(myFolder, "Items").toDispatch();

I am read all items from outlook. instead of items i am using MailItem its throw exception.
so please help to read mail items only from outlook