Multipart email with HTML body and attachment

An email message with a plain-text part, an HTML alternative, a base64-encoded CSV attachment and an encoded-word subject line.

Download

sample-multipart-attachment.eml

1.23 KB1,264 bytes

Download EML sample

Created in your browser in a few seconds, then checked against the SHA-256 checksum. The file is not uploaded anywhere. No sign-up.

Type
message/rfc822
SHA-256
ade88fdb125d3c3c9eb6e99edc668bedbe19c944f3b20f71596915bba8cffd8f
Delivery
Created in your browser from static generator assets (how it works).

Why test with this file

Covers the MIME features that email parsers most often get wrong.

Structuremultipart/mixed containing multipart/alternative
Partstext/plain, text/html, text/csv attachment
Encodingsquoted-printable, 7bit, base64
Line endingsCRLF

What to check

After your application has processed sample-multipart-attachment.eml, confirm that:

How the file begins

The opening lines of sample-multipart-attachment.eml, exactly as they appear in the file.

From: "SampleTestFiles Samples" <samples@example.com>
To: "Test Recipient" <recipient@example.org>
Cc: "Second Recipient" <second@example.net>
Subject: =?UTF-8?Q?Sample_multipart_message_=E2=9C=93?=
Date: Thu, 01 Jan 2026 09:00:00 +0000
Message-ID: <sample-multipart@example.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="fixture-mixed-001"

This is a multi-part message in MIME format.
--fixture-mixed-001
Content-Type: multipart/alternative; boundary="fixture-alt-001"

--fixture-alt-001

Preview

Shows the file contents.

Technical details

File namesample-multipart-attachment.eml
FormatEML (Email message)
Extension.eml
MIME typemessage/rfc822
Size1,264 bytes (1.23 KB)
KindText
SHA-256ade88fdb125d3c3c9eb6e99edc668bedbe19c944f3b20f71596915bba8cffd8f
Created2026-10-10
ValidationSee the listed size and SHA-256. Small downloads are checked in the browser; verify streamed downloads manually. A hash match does not prove parser compatibility.
PreviewAvailable on this page
SourceGenerated in your browser by this site's generator; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryEmail & Calendar

Check the stated structure and checksum against your application requirements. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Verify your copy

This file is created in your browser, so it has no direct URL for curl or wget. The generator is designed to produce reproducible bytes. After saving, compare the checksum with the SHA-256 value above.

sha256sum sample-multipart-attachment.eml     # Linux
shasum -a 256 sample-multipart-attachment.eml # macOS

On Windows, run Get-FileHash sample-multipart-attachment.eml -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.

About EML

A single email saved as text: headers, a blank line, then the body.

EML format reference

Where it fits

Related files

All curated sample files

How to integrate multipart email with html body and attachment into automated QA suites

Curated fixtures like Multipart email with HTML body and attachment are built to exercise specific parser branches that generic byte-padded files cannot reach—such as multi-row delimiter escaping, header-vs-trailer structural validation, filename normalization, or media decoder initialization.