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 3662536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:25:38+00:00 2026-05-19T01:25:38+00:00

We have begun to use the EWS Managed API to send email via MS

  • 0

We have begun to use the EWS Managed API to send email via MS Exchange Server 2007.
We have another product which receives email from MS Exchange Server 2007 via POP3/IMAP protocol.

The issue we are having when we set custom header using EWS Manged API in C#.NET using code given below.
The custom header does not show up.

Also I noticed when I sent the custom header below to myself. And review the headers using Microsoft Outlook I have noticed that the header is visible BUT only in lower case as in “custheader”.

Code given below:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

  service.Credentials = new WebCredentials("username", "password", "domain");                
  service.AutodiscoverUrl("emailaddress@xyz.com");

  EmailMessage message = new EmailMessage(service);
  message.Subject = "This is a test";
  message.Body = "xxxdffsasfasfasfsfsfsfsaffafasfsfsafasfafasffasf";


 message.ToRecipients.Add("toaddress@todomain.com");


ExtendedPropertyDefinition msg = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders, "CUSTHEADER", MapiPropertyType.String);
 message.SetExtendedProperty(msg, "87677");

 message.SendAndSaveCopy();

Can you help us and let us know how we can workaround this with the EWS Managed API or an alternative solution.

FYI : My colleague ran tests with his own Mail Server (Argo Mail) and Email product which I mentioned above. And we saw that it picks up custom headers as expected when you send them.
This eliminates any possibility that the Email IMAP/POP3 product may be doing something unexpected with the headers. If Outlook Express is not seeing the header, then the Email client mentioned above will definitely not see it either.

So, why are these headers not showing to non-MAPI clients? In Outlook, the header does show, but it is a MAPI client.

I noticed that the code used above where we are creating a new extended property. What’s the difference between an extended property, and a named MAPI property (which has been referenced in the http://technet.microsoft.com/en-us/library/bb851492%28EXCHG.80%29.aspx).

Can you answer this question and point me out how we can achieve our custom header being read by our IMAP/POP3 client?

  • 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-19T01:25:39+00:00Added an answer on May 19, 2026 at 1:25 am

    Custom/Modified Headers can be propogated by MS Exchange Server 2007 to Non-Mapi clients using POP/IMAP.
    But we need to run the following command: Set-TransportConfig –HeaderPromotionModeSetting [MayCreate | NoCreate | MustCreate]
    For E.g.: Set-TransportConfig –HeaderPromotionModeSetting MustCreate

    In Exchange management shell use the above cmdlet to change the current behaviour. The default is NoCreate. You can choose either of the other modes.

    Preference would be to use MayCreate over MustCreate.

    MS Exchange Server 2007 only propogates custom headers in LOWER CASE.

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

Sidebar

Related Questions

I have just begun to use Visual Studio Team System 2008 Database Edition. I'm
I have recently begun to use the EF v4 Code Only library for some
I have created a website which allows users to sign up for, and use,
I have a the following use case where I'm receiving a message via JMS
I have a form that I'm looking at, which makes use of stored procedures
I recently began using BIRT and have developed a report to use with my
I previously asked about what Mixins were, and have begun to get the gist
I have a .Net service that has begun to refuse to start - the
I'm developing a website which to begin with will have three clear sub sites:
I have started to use anonymous delegates a lot in C# and I have

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.