Dealing with System.Web.Mail.MailMessage

Hello,
I’ve two questions regarding emails saved as System.Web.Mail.MailMessage.

  1. Is it possible to convert list of emails:
    List - System.Web.Mail.MailMessage
    to
    List System.Net.Mail.MailMessage?

  2. Is it possible to covert email - List - System.Web.Mail.MailMessage - into HTML (to extract datatable from email body)?

Hi @robert.ozog,

  1. As those are completely different classes you would need to perform it manually by defining new class and feed it with items and their properties. Technically possible but practically a time consuming challenge. Do you have any use case why would you need this and some process that I could look at?

  2. I’m not sure if there is a direct method to do that. But for sure you can extract a body to a string type.

Problem ‘solved’ by using one file system.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.