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

  • SEARCH
  • Home
  • 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 8411345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:24:12+00:00 2026-06-10T00:24:12+00:00

I recently posted a question about saving an email once it’s sent – I

  • 0

I recently posted a question about saving an email once it’s sent – I have just about everything working, except for one small detail. Basically, I am able to catch an email right before it sends, and do whatever I want with it – in my case, save it. However, if you try to access that email’s CreationTime attribute, it returns January 1st 4501 at 12AM. This is most likely because it hasn’t actually been ‘created’ yet, in that it will be created in the Sent items folder as soon as my code finishes executing and it actually sends.

I’d like to leave this MailItem, which is about to be sent, untouched. I would like to duplicate it, change the CreationTime attribute of the duplicate to DateTime.Now, then save the duplicate, then allow Outlook to continue sending the original. However, when I attempt to modify the CreationTime, I get an error that that attribute is read-only. Is there any way to ‘break into’ it? Or any way to force a write or something?

  • 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-06-10T00:24:13+00:00Added an answer on June 10, 2026 at 12:24 am

    A better approach is attaching to the sent items Folder.ItemAdd so you can save messages after they have been sent instead of before – that way your MailItem.CreationTime should be accurate. This may or may not be an option for you but could alleviate the issue.

    Outlook.Folder sentItems = ThisAddIn.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail) as Outlook.Folder;
    sentItems.Items.ItemAdd += new Outlook.ItemsEvents_ItemAddEventHandler(sentItems_ItemAdd);
    // ...
    void sentItems_ItemAdd(object Item)
    {
      var msg = Item as Outlook.MailItem;
      msg.SaveAs(yourPath, Outlook.OlSaveAsType.olMSG);
    }
    

    Note: You need to handle proper COM resource disposal and error handling.

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

Sidebar

Related Questions

Recently I posted a question about the html helper dropdownlist and got it working
I recently posted a question about screen rotation in my live wallpaper. To test
I recently posted a question about centering a page with CSS. I figured out
I recently posted a question about getting a NullPointerException whenever I called an array
I have recently posted another question which straight away users pointed me in the
I recently posted a question about getting last 3 results in table in the
I recently posted a question about optimizing the algorithm to compute the Levenshtein Distance,
Recently i posted a question about what the variable is of a file which
I recently posted a question here about some memory issues I was having. I've
I recently posted a question about splitting a string when a character is instanced.

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.