Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Application Layer Protocols, Services and Applications (OSI Layers 5, 6 and 7)
      9  TCP/IP Key Applications and Application Protocols
           9  TCP/IP File and Message Transfer Applications and Protocols (FTP, TFTP, Electronic Mail, USENET, HTTP/WWW, Gopher)
                9  TCP/IP Electronic Mail System: Concepts and Protocols (RFC 822, MIME, SMTP, POP3, IMAP)
                     9  TCP/IP Electronic Mail Message Formats and Message Processing: RFC 822 and MIME
                          9  TCP/IP Enhanced Electronic Mail Message Format: Multipurpose Internet Mail Extensions (MIME)

Previous Topic/Section
TCP/IP Enhanced Electronic Mail Message Format: Multipurpose Internet Mail Extensions (MIME)
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
MIME Basic Structures and Headers
Next Topic/Section

MIME Message Format Overview, Motivation, History and Standards
(Page 2 of 3)

MIME Capabilities

The idea behind MIME is both clever and elegant—which means I like it! RFC 822 restricts e-mail messages to be ASCII text, but that doesn't mean that we cannot define a more specific structure for how that ASCII text is created. Instead of just letting the user type an ASCII text message, we can use ASCII text characters to actually encode non-text information (commonly called attachments). Using this technique, MIME allows regular RFC 822 e-mail messages to carry the following:

  • Non-text information, including graphic files, multimedia clips and all the other non-text data examples I listed earlier;

  • Arbitrary binary files, including executable programs and files stored in proprietary formats (for example, AutoCAD files, Adobe Acrobat PDF files and so forth);

  • Text messages that use character sets other than ASCII. This even includes the ability to use non-ASCII characters in the headers of RFC 822 e-mail messages.

MIME even goes one step beyond this, by actually defining a structure that allows multiple files to be encoded into a single e-mail message, including files of different types. For example, someone working on a budget analysis could send one e-mail message that includes a text message, a Powerpoint presentation, and a spreadsheet containing the budget figures. This capability has greatly expanded e-mail’s usefulness in TCP/IP.

All of this is accomplished through special encoding rules that transform non-ASCII files and information into an ASCII form. Headers are added to the message to indicate how the information is encoded. The encoded message can then be sent through the system like any other message. SMTP and the other protocols that handle mail pay no attention to the message body, so they don't even know MIME has been used.

The only changes required to the e-mail software is adding support for MIME to e-mail client programs: both the sender and receiver must support MIME to encode and decode the messages. Support for MIME was not widespread when MIME was first developed, but the value of the technique is so significant that it is present in nearly all e-mail client software today. Furthermore, most clients today can also use the information in MIME headers to not only decode non-text information but pass it to the appropriate application for presentation to the user.

Key Concept: The use of the RFC 822 message format ensures that all devices are able to read each other’s e-mail messages, but it has a critical limitation: it only supports plain, ASCII text. This is insufficient for the needs of modern internetworks, yet reliance on the RFC 822 standard would have made replacing it difficult. Instead, a new standard called the Multipurpose Internet Mail Extensions (MIME) was defined. MIME specifies several methods that allow e-mail messages to contain multimedia content, binary files, and text files using non-ASCII character sets, all while still adhering to the RFC 822 message format. MIME also further expands e-mail’s flexibility by allowing multiple files or pieces of content to be sent in a single message.



Previous Topic/Section
TCP/IP Enhanced Electronic Mail Message Format: Multipurpose Internet Mail Extensions (MIME)
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
MIME Basic Structures and Headers
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.