title: capture the Outlook 2013 Send event
body: <p>I'm working on an application that should capture the Outlook 2013 Send event. I have used a C# project to do the required task.</p>
  
  <p>In particular I have used following code to do this task</p>
  
  <pre><code>public Outlook.Application OutlookApplication;
  public Outlook.Inspectors OutlookInspectors;
  public Outlook.Inspector OutlookInspector;
  public Outlook.MailItem OutlookMailItem;
  public delegate void ApplicationEvents_11_ItemSendEventHandler(object Item, ref bool Cancel);
  
  applicationObject = application;
  addInInstance = addInInst;
  OutlookApplication = application as Outlook.Application;
  OutlookInspectors = OutlookApplication.Inspectors;
  OutlookInspectors.NewInspector += new InspectorsEvents_NewInspectorEventHandler(OutlookInspectors_NewInspector);
  OutlookApplication.ItemSend += new Outlook.ApplicationEvents_11_ItemSendEventHandler(OutlookMailItem_Send);
  
  string strchkTo = OutlookMailItem.To;
  string strchk = "hello Welcome to c#";
  
  OutlookInspector = (Outlook.Inspector)Inspector;
  if (Inspector.CurrentItem is Outlook.MailItem)
  {
     OutlookMailItem = (Outlook.MailItem)Inspector.CurrentItem;
  }
  </code></pre>