Is there any easy way to convert a System.Net.Mail.MailMessage object to the raw mail message text, like when you open a eml file in notepad.
Is there any easy way to convert a System.Net.Mail.MailMessage object to the raw mail
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s the same solution, but as an extension method to
MailMessage.Some of the reflection overhead is minimized by grabbing the
ConstructorInfoandMethodInfomembers once in the static context.To grab the underlying
MemoryStream: