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

Free Support Forum - aspose.com

How to Convert HTML to TXT and Save Attachments?

I want Convert html to txt using aspose api and save attachment while conversion html to txt

Thank you for posting the query.

You can use GetHtmlBodyText method to convert a message HTML body to text as shown below:

string text = mailMessage.GetHtmlBodyText(true);

Email attachments can be saved to files like this:

foreach (var attachment in mailMessage.Attachments)

More examples:
Extracting Message Contents from Emails
Working with Attachments and Embedded Objects

API Reference:
MailMessage Class
Attachment Class