MessageText-based
message/rfc822
Email Message (RFC 822)
Reference for message/rfc822, the MIME type for complete email messages with headers, body, and attachments.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .eml, .msg
HTTP Content-Type Header
HTTP Header
Content-Type: message/rfc822; charset=utf-8Associated File Extensions
.eml.msg
Quick Facts
| MIME Type | message/rfc822 |
| Category | Message |
| Type | Text-based (human-readable) |
| Extensions | .eml, .msg |
Common Usage
message/rfc822 encapsulates a complete email message, including all headers (From, To, Subject, Date), body content, and MIME attachments. Used for forwarding emails as attachments, email archiving, mailing list digests, and email migration between systems.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.eml" type="message/rfc822">
<!-- Or for script/media elements -->
<script type="message/rfc822" src="file.eml"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('message/rfc822');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'message/rfc822' });nginx
# nginx.conf — add to types block or use default
types {
message/rfc822 eml msg;
}
# Or set for a specific location
location /api/ {
default_type message/rfc822;
}Related MIME Types
More Message MIME Types
Other message types in the Message family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.