Skip to content

Illustrates the use of CDOSYS from C# to parse EML raw email messages

License

Notifications You must be signed in to change notification settings

riesvriend/CDO-EML-Parsing-Sample

Repository files navigation

EML Parsing Sample in C# using CDO

This sample project answers (the question on stackoverflow) on how to parse a raw email file in .eml format using C#.

This fragment illustrates the API:

      var message = CdoWrapper.LoadMessage(emlFilePath);
      Debug.WriteLine(message.Subject);
      Debug.WriteLine(message.TextBodyPart.GetString());
      Debug.WriteLine(message.HTMLBodyPart.GetString());
      var attachment = message.Attachments[1];
      Debug.WriteLine(attachment.FileName);
      Debug.WriteLine(attachment.GetString());

CDOSYS v.6 is pre-installed on all modern versions of Windows versions (2000 to 2016).

Changelist

20 Jul 2015 Ries Vriend: Initial commit

About

Illustrates the use of CDOSYS from C# to parse EML raw email messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages