Test files › Email

Sample Email test files

What are email test files?

EML, MSG, EMLX, MBOX and MHTML files for importers, archivers and parsers, covering folded headers, encoded words, quoted-printable, attachments, inline images and spoofed senders. Every address is on the reserved example.test domain, so nothing can be delivered.

Sample EML and MSG email filesReserved domains for test emailCharacter encodings

19 free email test files for QA and developers: apple-mail.emlx, attachment-tricky-filename.eml, dkim-spf-headers.eml, empty-body.eml and more. Each with a…

FileFormatSizeWhat it catches
apple-mail.emlxEMLX742 bytesApple Mail’s on-disk format: a byte-count line, then the RFC 822 message, then an XML plist of Mail’s own metadata.
attachment-tricky-filename.emlEML643 bytesAn attachment whose filename uses RFC 2231 continuation encoding, contains a double extension and non-ASCII characters.
dkim-spf-headers.emlEML1007 bytesA message with a realistic Received chain plus Authentication-Results, DKIM-Signature and ARC headers.
empty-body.emlEML273 bytesValid headers followed by a completely empty body.
forwarded-nested.emlEML864 bytesA forwarded message: a complete RFC 5322 message embedded as a message/rfc822 part inside another.
html-multipart.emlEML593 bytesmultipart/alternative carrying both a text/plain and a text/html version of the same message.
inline-image-cid.emlEML774 bytesmultipart/related where the HTML body references an inline image through a cid: URL.
long-folded-headers.emlEML1.0 KBHeaders folded across many continuation lines, including a To: field with 25 recipients and a 300-character subject.
mailbox.mboxMBOX1.1 KBAn mbox archive of three messages, the format Gmail Takeout, Thunderbird and Apple Mail all export. Includes a body line beginning with "From " that has been escaped to ">From ".
missing-required-headers.emlEML103 bytesA message with no Date and no Message-ID, and a body separated by a bare LF instead of CRLF.
outlook-message.msgMSG6.5 KBA genuine Outlook .msg: MAPI properties stored inside an OLE2 compound file, with a recipient sub-storage and the original transport headers preserved.
plain-text.emlEML337 bytesA minimal, fully valid RFC 5322 message: text/plain, UTF-8, CRLF line endings and all required headers.
quoted-printable.emlEML535 bytesA quoted-printable body with accented characters, soft line breaks and an = sign at a wrap boundary.
spoofed-display-name.emlEML410 bytesA display name that reads as a trusted address while the real envelope address is something else entirely.
threaded-reply.emlEML551 bytesA reply carrying In-Reply-To and a References chain four messages deep.
unicode-headers.emlEML427 bytesSubject and display name encoded as RFC 2047 encoded-words (=?UTF-8?B?...?=) carrying CJK, Arabic and emoji.
web-archive.mhtMHTML689 bytesA MIME HTML archive: an HTML page and its image bundled into one multipart/related file, the format Outlook and Internet Explorer call a Web Archive.
winmail-tnef.emlEML695 bytesA message carrying an application/ms-tnef part named winmail.dat, which is how Outlook wraps rich formatting and attachments when it uses TNEF.
with-attachment.emlEML693 bytesmultipart/mixed with a base64-encoded PNG attachment and a Content-Disposition filename.

← All test files