Browse Definitions :
Definition

MIME (Multipurpose Internet Mail Extensions)

What is MIME (Multipurpose Internet Mail Extensions)?

MIME (Multipurpose Internet Mail Extensions) is an extension of the original Simple Mail Transport Protocol (SMTP) email protocol. It lets users exchange different kinds of data files, including audio, video, images and application programs, over email.

Unlike SMTP, MIME supports sending both ASCII text and non-ASCII data via email. For text in character sets other than ASCII, the MIME protocol is required.

Drawbacks of SMTP

SMTP, which emerged in 1981, is a standard protocol for delivering messages via email. However, the original SMTP protocol supported only 7-bit ASCII text communications that were both unauthenticated and unencrypted. With only 94 printable characters in ASCII, the system cannot deal with binary files or characters in non-English languages that use different writing systems, accented letters, etc.

Pure SMTP also does not accommodate sending video or audio data.

The default design of every SMTP server was an open mail relay that lets anyone send emails through it, not just those from or to known users. These limitations made SMTP communications vulnerable to email spoofing, spamming, worms and man-in-the-middle (MitM) attacks.

MIME was proposed as a solution to these limitations.

Origins of MIME

In 1991, Nathaniel Borenstein, then a technical staff member at Bellcore, proposed to the Internet Engineering Task Force (IETF) that SMTP be extended so web (and other internet) clients and servers could recognize and handle all kinds of data, not just Latin-based ASCII text, and to allow the encoding of binary files for transfer through SMTP.

As a result, new file types were added to "mail" as a supported Internet Protocol file type. MIME is not restricted to textual data and is also important for other communication protocols, even though it was originally designed only to address the shortcomings of email and SMTP.

New MIME data types are registered with the Internet Assigned Numbers Authority (IANA). IETF's RFC 6838 defines the procedures to notify and register media types for use in MIME.

email spoofing
MIME addresses the limitations of the SMPT email protocol that could lead to vulnerabilities like email spoofing.

Advantages of MIME

MIME has several advantages over SMTP.

  • Users can send different kinds of binary attachments via email.
  • Multiple attachments of different types can be included in the same email.
  • There are no limits on message length.
  • Multipart messages are supported.

MIME defines four subtypes for multipart messages, specifying the nature of these parts and their relationship to one another. In particular, the "multipart/alternative" subtype lets systems choose the best representation of the message: plain text or HTML.

How MIME works

Emails with MIME formatting may be transmitted via standard protocols like SMTP, Post Office Protocol (POP) or Internet Message Access Protocol (IMAP). The body of such messages may consist of multiple parts. The header may be specified in non-ASCII character sets MIME supports. IETF's RFC 2045 defines the various headers used to describe the structure of MIME messages.

Servers insert the MIME header at the beginning of an email transmission. Clients use the MIME header to select an appropriate player application for the data type indicated by the header. Some players are built into the web client or browser. For instance, all browsers come with GIF and JPEG image players and can handle HTML files. Other players may need to be downloaded.

At the sender's end, MIME transforms non-ASCII data to 7-bit Network Virtual Terminal (NVT) data. 7-bit ASCII can represent 128 characters. MIME then delivers this transformed data to the client SMTP. At the recipient's end, the message is transferred back to the original data, allowing them to see its contents, regardless of whether it contains text, audio, video or some other kind of data.

Standard email protocols like SMTP, POP or IMAP may transmit emails with MIME formatting.
Standard email protocols like SMTP, POP or IMAP may transmit emails with MIME formatting.

MIME header fields

A MIME header contains multiple subparts. These include:

MIME-Version

This header field indicates the message is MIME-formatted. Its value is typically "1.0."

Content-Type

This header describes the media type of the content within the message. It consists of a type and a subtype, both of which are strings. When concatenated with a slash (/) between them, the type and subtype comprise a MIME type.

  • Type: General category of the data type (e.g., video or text)
  • Subtype: Exact kind of data the MIME type represents.

MIME types are case-insensitive. An optional parameter can be added to the MIME type to provide additional details. So, if the parameter is "charset", it will specify the character set used for the data characters. If this parameter is not specified, MIME will use the default ASCII character set.

Using the type "multipart," MIME allows mail messages to have parts arranged in a tree structure to support:

  • simple text messages
  • text plus attachments
  • replies with original message attached
  • multiple alternatives in HTML
  • images, audio and video
  • applications

Content-Disposition

This header specifies the presentation style of email messages. The disposition may be:

  • Inline: Automatically displayed when the message is displayed
  • Attachment: Not displayed automatically but rather requires some user action (i.e. download)

RFC 2183 specifies the content-disposition header.

Content-Transfer-Encoding

This header indicates whether a binary-to-text encoding scheme has been used in addition to the original encoding specified in the content-type header.

This was last updated in October 2021

Continue Reading About MIME (Multipurpose Internet Mail Extensions)

Networking
  • firewall as a service (FWaaS)

    Firewall as a service (FWaaS), also known as a cloud firewall, is a service that provides cloud-based network traffic analysis ...

  • private 5G

    Private 5G is a wireless network technology that delivers 5G cellular connectivity for private network use cases.

  • NFVi (network functions virtualization infrastructure)

    NFVi (network functions virtualization infrastructure) encompasses all of the networking hardware and software needed to support ...

Security
  • virus (computer virus)

    A computer virus is a type of malware that attaches itself to a program or file. A virus can replicate and spread across an ...

  • Certified Information Security Manager (CISM)

    Certified Information Security Manager (CISM) is an advanced certification that indicates that an individual possesses the ...

  • cryptography

    Cryptography is a method of protecting information and communications using codes, so that only those for whom the information is...

CIO
  • B2B (business to business)

    B2B (business-to-business) is a type of commerce involving the exchange of products, services or information between businesses, ...

  • return on investment (ROI)

    Return on investment (ROI) is a crucial financial metric investors and businesses use to evaluate an investment's efficiency or ...

  • big data as a service (BDaaS)

    Big data as a service (BDaS) is the delivery of data platforms and tools by a cloud provider to help organizations process, ...

HRSoftware
  • talent acquisition

    Talent acquisition is the strategic process an organization uses to identify, recruit and hire the people it needs to achieve its...

  • human capital management (HCM)

    Human capital management (HCM) is a comprehensive set of practices and tools used for recruiting, managing and developing ...

  • Betterworks

    Betterworks is performance management software that helps workforces and organizations to improve manager effectiveness and ...

Customer Experience
  • martech (marketing technology)

    Martech (marketing technology) refers to the integration of software tools, platforms, and applications designed to streamline ...

  • transactional marketing

    Transactional marketing is a business strategy that focuses on single, point-of-sale transactions.

  • customer profiling

    Customer profiling is the detailed and systematic process of constructing a clear portrait of a company's ideal customer by ...

Close