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

@mukundmalpaniweb,
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)
{
    attachment.Save(attachment.Name);
}

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

API Reference:
MailMessage Class
Attachment Class