3.1.2 MIME Message Containing Inline and Non-Inline Attachments

The following example demonstrates a MIME-formatted message that contains both inline and non-inline attachments, as described in section 2.1.3.4.

 From: <john@contoso.com>
 To: <imtiaz@contoso.com>
 Subject: Example with inline and non-inline attachments.
 Date: Mon, 10 Mar 2008 14:36:46 -0700
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary="simple boundary 1"
  
 --simple boundary 1
 Content-Type: multipart/related; boundary="simple boundary 2"
  
 --simple boundary 2
 Content-Type: multipart/alternative; boundary="simple boundary 3"
  
 --simple boundary 3
 Content-Type: text/plain
  
 ...Text without inline reference...
 --simple boundary 3
 Content-Type: text/html
  
 ...Text with inline reference...
 --simple boundary 3--
 --simple boundary 2
 Content-Type: image/png; name="inline.PNG"
 Content-Transfer-Encoding: base64
 Content-ID: <6583CF49B56F42FEA6A4A118F46F96FB@example.com>
 Content-Disposition: inline; filename="Inline.png"
  
 ...Attachment data encoded with base64...
 --simple boundary 2--
  
 --simple boundary 1
 Content-Type: image/png; name=" Attachment "
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="Attachment.png"
  
 ...Attachment data encoded with base64...
 --simple boundary 1--
Show: