Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6107299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:10:24+00:00 2026-05-23T14:10:24+00:00

So I have been generating emails through a C# application for the company I

  • 0

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.

I didnt know if it was a setting on the email or not

Here is the code I used:

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();

Maybe some one has a idea? Thanks for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:10:25+00:00Added an answer on May 23, 2026 at 2:10 pm

    I believe it is saving the emails in the Drafts folder after being sent because you asked it to save it there.

    Outlook.MAPIFolder folder
        = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDrafts);
    ...
    mic.SaveSentMessageFolder = folder
    

    Per MSDN:

    …a MAPIFolder object that represents the folder in which a copy of the e-mail message will be saved after being sent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been building a Rails application that performs accounting functionality. As part of
Have been looking at the MVC storefront and see that IQueryable is returned from
I have been using php from some time and I have noticed that it
I have been searching for a source code for generating combinations using C++. I
Recently I have been reading about lotto wheeling and combination generating. I thought I'd
I have been working on getting a python CGI script to work all day,
I'm using Hibernate with Spring in my application. I have been consistently using detached
I have been researching options for printing report-like data via a web application. Some
I know that this question might have been asked like 100 times, but, believe
Good afternoon. I have been making a small openGL based app for android that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.