title: how to send outlook email from draft folder in c#
body: <p>I am trying to send an outlook email item from MAPI Draft Folder in c# but no success. I am still searching how to send the MAPI Folder (folderDrafts) Items, casting it to MailItem is not applicable.</p>
  
  <p>Here is the code I used:</p>
  
  <pre><code>Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
  Microsoft.Office.Interop.Outlook.NameSpace nameSpace = app.GetNamespace("MAPI");
  Microsoft.Office.Interop.Outlook.MAPIFolder folderDrafts = nameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderDrafts);
  
  Microsoft.Office.Interop.Outlook.MailItem mailItem = (Microsoft.Office.Interop.Outlook.MailItem)app.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
  mailItem.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
  mailItem.Subject = "Test Outlook Mail Item";
  mailItem.To = "receiver";
  mailItem.HTMLBody = "html";
  mailItem.Save();
  mailItem = (Microsoft.Office.Interop.Outlook.MailItem)folderDrafts.Items[0];
  mailItem.Send();
  </code></pre>
  
  <p>Maybe someone can help. Thanks in advance!</p>