Use of shift + Delete

  • Thread starter Thread starter A De Vrijbuiter
  • Start date Start date
A

A De Vrijbuiter

I have a program thats recieve email every minute with status info of a machine, after I read the mail with VB and put in one log-file I wil delete the mail item directly.
Now I delete the item with command 'mailitem.delete' but it is going to the default box deleted items .
But now the problem I want to delete the item without it is going to the deleted item box .
Do someone no a way to do this or how I can use the shift key option to do this?

Alexander from Holland
 
That's how Item.Delete works in the Outlook object model. You can use CDO 1.21 code to get that Item as a CDO Message object and use CDO's Message.Delete method to permanently delete the item and bypass the Deleted Items folder. See www.cdolive.com/cdo5.htm for various CDO 1.21 code samples.




I have a program thats recieve email every minute with status info of a machine, after I read the mail with VB and put in one log-file I wil delete the mail item directly.
Now I delete the item with command 'mailitem.delete' but it is going to the default box deleted items .
But now the problem I want to delete the item without it is going to the deleted item box .
Do someone no a way to do this or how I can use the shift key option to do this?

Alexander from Holland
 

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

Back
Top