Reputation: 383
In an Outlook addin I'm listening to Items.ItemAdd
event for the Outbox folder, and I inspect every email that is added to Outbox. I'm wondering whether this is guaranteed to work at all times, as I'm afraid that the email will be sent and disappear from Outbox before I have a chance to access it.
is such scenario possible? or is ItemAdd
works in a synchronous way so I can be sure the item is still in Outbox? (I guess yes, otherwise the IDispatch pointer in the ItemAdd
callback might be invalid)
Upvotes: 0
Views: 371
Reputation: 66245
No, you should never touch any item in the Outbox folder - doing so will abort the message submission process.
Use the Application.ItemSend
event instead.
Upvotes: 1