---
title: "Convert a Document to MHTML and Send It by Email"
---


{{% alert color="grey" %}}

## Purpose Summary

This page describes how to convert a document to MHTML and send it via email, demonstrating both conversion settings and SMTP workflow integration.

{{% /alert %}}

Aspose.Words can convert any document to the MHTML (Web Archive) format. This makes it convenient to use Aspose.Words and `Aspose.Email` together. You can load a predefined document in any supported format, such as DOC, OOXML, or RTF, into Aspose.Words, fill it with data, save the resulting document as MHTML, and then send it by e-mail using `Aspose.Email`.

The following code example shows how to convert any document to MHTML and send it by email:

{{< gist "aspose-words-gists" "1bcfd5d0ec402f0f54cd747eb22d8da5" "docx-to-mhtml.java" >}}
