title: Error: 'MyProject.Email does not contain a definition for 'Application'
body: <p>'Dashboard.Email' does not contain a definition for 'Application' and no extension method 'Application' accepting a first argument of type 'Dashboard.Email' could be found (are you missing a using directive or an assembly reference?)   </p>
  
  <p>I've tried adding references and using statements to no avail. I'm just trying to create a simple mail object in VS2010 .NET 4 Framework.</p>
  
  <pre><code>using System;
  using System.Data;
  using System.Windows;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using System.ComponentModel;
  using System.Threading.Tasks;
  using System.Collections.Generic;
  using System.Deployment.Application;
  using System.Runtime.InteropServices;
  using Microsoft.Office.Interop.Outlook;
  
  namespace Dashboard
  {
      public class Email
      {
          public void CreateEmailItem()
         {
             MailItem eMail = (MailItem)this.Application.CreateItem(OlItemType.olMailItem);
  
              eMail.Subject = "This is the subject";
              eMail.To = "example@gmail.com";
              eMail.Body = "This is the body";
              eMail.Importance = OlImportance.olImportanceLow;
  
              ((_MailItem)eMail).Send();
          }
      }
  }
  </code></pre>