A .NET library for parsing and creating MIME email messages
open sourceMITfree
MimeKit is a C# library for creating and parsing email messages in MIME, following the IETF specifications closely. Its parser works on raw byte buffers with pooled buffers, lazily decoded headers and SIMD-accelerated scanning, so it handles very large messages and multi-gigabyte mbox files. It builds messages with attachments, converts HTML and enriched text, extracts TNEF (winmail.dat) attachments and checks messages for MIME compliance problems, and its cryptography package signs, encrypts and verifies with S/MIME and PGP/MIME and handles DKIM, ARC and DMARC. MailKit, the IMAP, POP3 and SMTP library by the same author, is built on it. A .NET Foundation project, MIT licensed.
Problems it solves
- parse incoming email messages and their attachments in C#
- build an email with attachments in .NET before sending it
- read the attachments out of a winmail.dat file
- sign and verify email with S/MIME or PGP in a .NET app
Features
- MIME message parsing and creation
- Streaming parser for very large messages and mbox files
- HTML and enriched text conversion
- TNEF (winmail.dat) attachment extraction
- MIME compliance checking
- S/MIME and PGP/MIME signing and encryption
- DKIM and ARC signing and verification, DMARC verification
