1. Aspose.Email
  2. Editor
  3. MHTML Email Editor

MHTML Email Editor

Edit the HTML body of an MHTML email and save the result as a new .mhtml file, preserving only the email content without headers or attachments.

Powered by aspose.com, aspose.org and aspose.cloud

Click inside the file drop area to open a MHTML file or drag & drop it, or create a new email from scratch.

or

Edit the HTML body of an MHTML email and save it as a new .mhtml file that is ready for use in email clients, with table‑based layout and inline styles. The tool works only on the email content—headers, recipients, subjects and attachments are not included. Scope: body editing only; other email parts are not handled.

Body Extraction and Simplification

When a .mhtml or .mht file is dropped or selected, the editor reads the MIME archive and extracts only the HTML page that forms the email body. Header fields such as subject, sender, date and any attached files are omitted from the editing view and are not included in the saved output.

The extracted HTML is simplified to ensure reliable rendering in email clients: the page's head section, external style sheets, scripts, noscript blocks and embedded objects are removed, and any content without a dedicated block is reduced to plain text. This produces a clean, table‑based layout with inline styles that matches typical email client requirements.

Editing Blocks and Inline Images

The block editor offers text, headings, lists, quotes, dividers, columns, buttons, link cards, footers and an HTML code block, allowing visitors to compose or restructure the email body with familiar formatting tools and spell‑check support. All edits are applied directly to the static email layout; there are no merge tags, repeating sections or template features.

Images can be added only through absolute https:// URLs. When an opened MHTML file contains images referenced by relative paths, content‑id links, data URIs or http:// URLs, those image blocks are removed during import and again at save time. A notice indicates how many image blocks were stripped, helping users decide whether to replace them with hosted https:// links.

Saving Email‑Client Ready MHTML

Clicking “Save as MHTML” rebuilds a new .mhtml file that contains solely the edited body. The saved file retains the original filename (converted to .mhtml if it was .mht) up to 100 characters, with illegal characters replaced by underscores. No sender, recipient, subject or attachment data is written, producing an email body ready for insertion into any email client.

The download starts immediately and remains available for 24 hours via a “Download again” link. The editor stays open for further modifications, and any unsaved changes trigger a warning before the page is left or refreshed.

Limits and scope

Browser‑only operation
Runs entirely in the web browser, so no installation or external software is required
Single‑file focus
Processes one MHTML file at a time, targeting the email body of that file
HTTPS image links
Supports image blocks only with absolute https:// URLs; other image references are omitted during import and save

How to edit MHTML files

STEP 1

Open or create

Drop a MHTML file into the upload area or click it to choose a file. Or click "Create new email" to start from scratch.

STEP 2

Edit

Edit the HTML body of the opened MHTML file, adjusting its text, headings, lists and other content blocks.

STEP 3

Save and download

Click "Save as MHTML" and download the file from the link that appears.

STEP 4

Feedback

Check the result and send us your feedback.

FAQ

What happens to images that are stored inside the original MHTML file?

Images that are referenced by relative paths, content‑id links, data URIs or http:// URLs are removed during import and are not included in the saved MHTML file.

Can I add an image by dragging a picture file into the editor?

No. Images can only be added as absolute https:// URLs; dragging or pasting a picture file does not insert it.

Are email headers such as subject or sender kept when the file is saved?

No. The editor extracts only the HTML body, and the saved MHTML file contains no header information.

What is the maximum file size I can open with the MHTML Email Editor?

The editor accepts files up to the size limit defined by your account tier: anonymous users have the smallest limit, a free Aspose account raises the limit, Premium accounts allow larger files, and business customers can arrange custom limits.

How long are my uploaded and edited MHTML files kept on the server?

Both the original uploaded file and the generated download link are automatically deleted after 24 hours.