title: Progmatically genereated emails for Outlook get stuck in Drafts folder even after being sent!
body: <p>So I have been generating emails through a C# application for the company I work for. Emails are generated fine. The only little issue is that when they are sent from the drafts folder, they are not moved to the sent folder. They stay in the drafts folder. </p>
  
  <p>I didnt know if it was a setting on the email or not</p>
  
  <p>Here is the code I used:</p>
  
  <pre><code>Outlook.Application objOutlook= new Outlook.Application();
  
          // Creating a new Outlook Message from the Outlook Application Instance
          // Assigns the "TO", "CC" and "BCC" Fields
         // Assigns the Subject Field
  
          Outlook._NameSpace oNameSpace = objOutlook.GetNamespace("MAPI");
          Outlook.MAPIFolder folder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDrafts);
          String body;
          Outlook.MailItem mic = (Outlook.MailItem)(objOutlook.CreateItem(Outlook.OlItemType.olMailItem));
           mic.To = receiver;
           //Code that fills in body and what not of the email
           mic.Subject = subject;
           mic.HTMLBody = body;
           mic.SaveSentMessageFolder = folder
           mic.Save();
  </code></pre>
  
  <p>Maybe some one has a idea? Thanks for the help!</p>