Deleting mails in the Exchange using MAPI

  • Thread starter Daman via OfficeKB.com
  • Start date
D

Daman via OfficeKB.com

Hi,

I am trying to delete mails from the Exchange using the following code :
(using MAPI33.dll and C#)

result = inbox.DeleteMessages(messages, IntPtr.Zero, null, MAPIFolder.FLAGS.
Default);
//messages if of type MAPI33.ENTRYID[]

result gives me back a NoAccess (2147942405) value.

Can anyone tell me what am I doing wrong here ?

Thanks in advance !!!
Daman
 

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