Delete Email

Add-in Express™ Support Service
That's what is more important than anything else

Delete Email
 
SSL




Posts: 178
Joined: 2014-01-05
Hi Andrei,

How do I delete an email from Drafts based on EntryID.

Regards,

Tom
Posted 28 Jul, 2015 07:44:46 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Tom,

If the email is opened in an inspector, save the email, get its MailItem.EntryId, close it. If the email isn't opened, just retrieve MailItem.EntryId. Then call NamespaceGetItemFormId() to find the email. Call MailItem.Delete().


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jul, 2015 08:48:16 Top