2

I found this thread: Convert MailMessage to Raw text

Its about taking a MailMessage and converting it to raw text ready for sending.

Is their a way to convert that raw text back into a MailMessage?

Community
  • 1
  • 1
GregoryBrad
  • 1,145
  • 13
  • 18

1 Answers1

2

Microsoft's BCL does not include any way of doing it, but you can use a library such as MimeKit (NuGet package here) to parse the message.

jstedfast
  • 35,744
  • 5
  • 97
  • 110
  • Cool, if you have any questions, let me know. I've also got a library called [MailKit](https://github.com/jstedfast/MailKit) for doing SMTP, POP3, and/or IMAP. – jstedfast Feb 25 '14 at 21:49