Email Messages with Attachments using MIME

This section provides an email message example with an attachment using the MIME (Multipurpose Internet Mail Extensions) protocol. The message is divided into multiple parts with each part using different content type.

If you want to send email message with an attachment, you email program will use the MIME (Multipurpose Internet Mail Extensions) protocol to deliver your message together with the attachment.

Here is an example email message using MIME to delivery a picture as an attachment:

Received: by sphinx (mbox mlande) (with Cubic Circle's cucipop (v1...
X-From_: Wed Aug 20 19:40:22 2003 
Return-Path: <> 
Received: from ( [])...
Message-Id: <> 
Received: from source ([]) by ...
From: "Bob Example" <>
To: "Alice Example" <>
Date: Wed, 20 Aug 2003 16:02:43 -0500
Subject: Test message
MIME-Version: 1.0
Content-Type: multipart/mixed;
        boundary="XXXXboundary text"

This is a multipart message in MIME format.

--XXXXboundary text 
Content-Type: text/plain

Hello Alice.
This is a test message with 5 lines in the message body
and an attachment.
Your friend,
--XXXXboundary text 
Content-Type: image/gif
Content-Transfer-Encoding: Base64
Content-Disposition: attachment; filename=smile.gif


--XXXXboundary text--

Note that:

Last update: 2011.

Table of Contents

 About This Book

 Introduction of PKI (Public Key Infrastructure)

 Introduction of HTTPS (Hypertext Transfer Protocol Secure)

 Using HTTPS with IE (Internet Explorer) 10

 Using HTTPS with Chrome 40

 Using HTTPS with Firefox 35

 Perl Scripts Communicating with HTTPS Servers

 PHP Scripts Communicating with HTTPS Servers

 Java Programs Communicating with HTTPS Servers

 Certificate Stores and Certificate Console

 .NET Programs Communicating with HTTPS Servers - Root CA Offering Free Certificates

 PKI CA Administration - Issuing Certificates

 Digital Signature - Microsoft Word 2007

 Digital Signature - 3

S/MIME and Email Security

 What Is S/MIME?

 Digital Signature Scheme for Email Messages

 A Simple Email Message Example

Email Messages with Attachments using MIME

 Email Messages with Digital Signatures using S/MIME

 Encrypted Email Messages using S/MIME

 Digital Signature and Encryption in Outlook 2007

 Email Security Settings in Outlook 2007

 Valid Certificate Required in Outlook 2007

 Message Security Properties in Outlook 2007

 Firefox Extension - Gmail S/MIME

 PKI (Public Key Infrastructure) Terminology

 Outdated Tutorials


 PDF Printing Version