Multipurpose Internet Mail Extensions (MIME)

 

Multipurpose Internet Mail Extensions (MIME)

Definition

MIME (Multipurpose Internet Mail Extensions) is an extension to the traditional e-mail system that enables the transmission of non-ASCII data through electronic mail.

Traditional e-mail supports only 7-bit NVT ASCII text, making it suitable mainly for plain English text. MIME overcomes this limitation by converting non-ASCII data into ASCII format before transmission and converting it back to its original form at the receiver.


Need for MIME

The original e-mail system had several limitations:

  • Supported only 7-bit ASCII characters.
  • Could not send text in languages such as Chinese, Japanese, Arabic, Russian, or French.
  • Could not send images, audio, video, PDF files, or executable files.
  • Could not handle binary data.

MIME was introduced to overcome these limitations.


Working of MIME

MIME acts as an intermediate software layer between the User Agent (UA) and the Mail Transfer Agent (SMTP).

At the Sender

  1. The user attaches a non-text file (image, audio, video, PDF, etc.).
  2. MIME converts the non-ASCII data into 7-bit ASCII using an encoding scheme such as Base64.
  3. The encoded message is sent through SMTP.

At the Receiver

  1. SMTP delivers the encoded message.
  2. MIME decodes the ASCII data back into its original format.
  3. The receiver views the original attachment.
Sender
   |
User Agent
   |
MIME Encoding
   |
SMTP
   |
Internet
   |
SMTP
   |
MIME Decoding
   |
User Agent
   |
Receiver




MIME Headers

MIME adds additional headers to the normal e-mail header.

MIME HeaderPurpose
MIME-VersionSpecifies the MIME version (current version: 1.1)
Content-TypeSpecifies the type of data (text, image, audio, video, application, etc.)
Content-Transfer-EncodingSpecifies the encoding method (Base64, Quoted-Printable, etc.)
Content-IDUniquely identifies the message
Content-DescriptionGives a textual description of the attached content

Common MIME Content Types

TypeExamples
Text        Plain text, HTML
Image        JPEG, GIF, PNG
Audio        Basic audio
Video        MPEG
Application        PDF, ZIP, MS Word, Executable files
Multipart        Multiple attachments in one e-mail
Message        Encapsulated e-mail message

MIME Encoding Methods

Encoding MethodDescription
7-bitStandard ASCII text
8-bitExtended ASCII characters
BinaryBinary data without encoding
Base64Converts binary data into ASCII characters (commonly used for attachments)
Quoted-PrintableEncodes only non-ASCII characters; efficient for mostly text documents

Advantages of MIME

  • Supports multiple languages.
  • Allows transmission of binary files.
  • Supports images, audio, video, and documents.
  • Enables multiple attachments in a single e-mail.
  • Fully compatible with existing SMTP.

Applications of MIME

MIME is widely used for sending:

  • πŸ“„ PDF and Word documents
  • πŸ–Ό️ Images (JPEG, PNG, GIF)
  • 🎡 Audio files
  • πŸŽ₯ Video files
  • πŸ“¦ ZIP archives
  • 🌐 HTML formatted e-mails
  • πŸ“Ž Multiple file attachments

Summary

  • MIME (Multipurpose Internet Mail Extensions) extends the capabilities of standard e-mail.
  • It allows non-ASCII text and multimedia files to be transmitted through SMTP.
  • MIME encodes non-ASCII data into 7-bit ASCII at the sender and decodes it back at the receiver.
  • It uses additional headers such as Content-Type and Content-Transfer-Encoding to describe the attached data.
  • Base64 is the most commonly used encoding method for binary attachments.

Comments

Popular posts from this blog

Computer Networks PCCST501 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Introduction to Computer Networks

Introduction to Local Area Network (LAN)