How to use Mime4Net parser - C# Samples


You can download a file with samples or just look below and review parts of code for making sure that it's really easy to work with Mime4Net component and integrate it in your application.

  • Extracting all message attachments, including attachments inside attached messages
    (NI.Mime4Net.Samples.ExtractAttachments)

  • Simple example how to parse MIME message and generate XML representation of Mime Message (NI.Mime4Net.Samples.ConvertToXml)

  • A sample application showing how Mime4Net can be used for composing messages with MHTML (NI.Mime4Net.Samples.ComposeMhtml)

  • Parsing infinite MIME streams with Mime4Net
    (NI.Mime4Net.Samples.InfiniteMimeStream)


These samples should not be considered commercial quality applications. They are just intended to illustrate how to use some particular feature, or group of features in Mime4Net. Feel free to polish them into applications of your own, or extract sections to use in your own code.