We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Extract plain text from htmlbody

is it possible to extract plain text from HtmlBody when TextBody is empty

Hi Erik,

Thank you for writing to Aspose support team.

Aspose.Email retrieves the information from the message if it is available. If the text body is not available, then it can not be obtained from the HtmlBody. Could you please share a such a sample message file with us just for our reference? We would also like to experiment with it and share our feedback.

actually i was just trying to use “MailMessage” to “clean” html text and get plain text value

Hi Erik,


I have tried to re-produce the scenario here by creating a sample message with HTML body and later loaded it into MailMessage. It is observed that “Body” and “TextBody” are auto filled with the plain text against the html body. It seems some issue with the source message and I would like to request you to send us the sample message for our analysis.

Other option is that you may convert the Html string to plain text using the sample code here.

Please feel free to write us back if you have any other query in this regard.