title: Trying to Programmatically Create & Open a new Outlook Email
body: <p>I have a winforms application and I am trying to create a method that will create and open a new Outlook Email.  So far I have</p>
  
  <pre><code>private void CreateOutlookEmail()
      {
          try
          {                
              Outlook.MailItem mailItem = (Outlook.MailItem)
                  this.CreateItem(Outlook.OlItemType.olMailItem);
              mailItem.Subject = "This is the subject";
              mailItem.To = "someone@example.com";
              mailItem.Body = "This is the message.";
              mailItem.Importance = Outlook.OlImportance.olImportanceLow;
              mailItem.Display(false);
          }
          catch (Exception eX)
          {
              throw new Exception("cDocument: Error occurred trying to Create an Outlook Email"
                                  + Environment.NewLine + eX.Message);
          }
      }
  </code></pre>
  
  <p>But the 'CreateItem' reference is underlined with the error message </p>
  
  <p>"does not contain a definition for CreateItem"</p>
  
  <p>I thought 'CreateItem' was a standard method for MS Office items, but admittedly I did find the above code on another website and simply copied it.</p>
  
  <p>What am I misunderstanding please?</p>