Reading emails & email headers from Outlook mail using C# – Part II

Hi Guys! This is continuation of my previous entry on reading emails and email header from Outlook PST file using C#. If you somehow, missed the first part you can have a look at it here

So in my previous part, I showed you how you can read header of an email from a PST file by specifying a particular header name (e.g. CC List, TO list, Subject, From etc), however, our requirement was to make the email message RFC 822 compliant but when you try to read header of an email item you wont be able to find all header in email item object, so here’s is the only way that you can read all headers in just one GO… Smile

string SchemaTransportHeader = @"";

These two lines will provide you all headers of a particular item. Hopefully this will help you all in reading emails from Outlook (PST) file and making them RFC 822 compliant.

Happy coding dudes! Thanks


  1. badar

    Well Done dear … Keep it ON … Keep it UP …

  2. Alaa

    Ahmed, thanks for the post ..However I do have a kinda separate question. Do you have any idea how to change the color of the calendar from C#???I’m writing C# code to access a non-primary calendar in Outlook 2007 and I wanted to allow the user to change the color of the calendar. Any help is highly appreciated. Thanks :)

  3. i’m student and
    i have project to read outlook 2007 using c# 2010

    can you help me?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: