Search code examples
c#asp.net-web-apiimapmailkitmimekit

Export EML from Email using MailKit


I need to export an EML file from IMAP using Mailkit, however there are no methods to export the emails.

I didn't find any documentation either in MimeKit - Mailkit Documentation.

Is it possible to export EML files using Mailkit?


Solution

  • What you are looking for is MimeMessage.WriteTo()