One simple question

  • Thread starter Thread starter clay
  • Start date Start date
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
 
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.
 
Back
Top