I am trying to close a mail item (from its inspector) at Outlook mail item send event after cancelling the send action. How I'm trying to close the inspector is as following.
_Inspector currentInspector = _applicationObject.ActiveInspector();
currentInspector.Close(OlInspectorClose.olSave);
However this causes Outlook to crash. How can I overcome this problem ? I'm testing this code in Outlook 2010.