I have a problem with the body from a mail (from IMAP) to transfer in text (only visible text).
My plan is in the moment to read out all mail and then write the text from a mail body in a DataTable. But i haven’t a idea or a solution fond for read out only the visible text from html in a string.
This code "Regex.Replace(mail.Body, "<[^>]+>| “, string.Empty)” it’s okay, but information about the font type or other information are not replaced with a empty string. So I have not only the message text alone.
Does anyone have a solution for me? Thank you