One simple question

C

clay

Hi,
I just touch 2008 vs c#, meet a question about outlook addsin:
I want to delete all same mail in Inbox, so I use “Items Objectâ€, I can
obtain a mail using "Item and GetNext" methods, but I didn't obtain
properties of the email, such as time, subject, etc.
How I do?
thks in advance

clay
 
K

Ken Slovak - [MVP - Outlook]

If you are getting a MailItem use the MailItem properties: mail.Subject,
etc. Look in the Object Browser to see the properties on various items.

Check for item.Class = olMail, since items in the Inbox can be other things
besides mail items (post, meeting and task requests, etc.).

If that doesn't help show the code you're using to iterate the Items
collection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top