Q What is MIME? What is MIME mail?
A MIME, a full name "MultiPurpose Internet Mail Extensions", more exact Chinese name is "Multi-Use Internet Mail Extension". It is an email technical specification that currently extensively applied, and the basic content is defined in RFC 2045-2049.
Naturally, MIME mail is an email compliant with MIME specification, or email based on MIME specification.
Before MIME is introduced, you can only send basic ASCII code text information using RFC 822, if you want binary files, sounds, and animation, etc., it is very difficult. MIME provides a method of attaching a variety of different coded files in the mail to compensate for the lack of the original information format. In fact, it is not only email coding, and now MIME is a part of the HTTP protocol standard.
Let's take a few examples of MIME mail, let us first have an intuitive impression on the format of MIME encoding. Example 1 is the simplest, only a plain text body, basically the RFC 822 format; Example 2 is complex, including plain text and hypertext body; Example 3 is the most complicated, including plain text, hypertext body, within Embedded resources and file accessories. Among them, the space after the line number and the line number is to analyze convenient and additionally, "... ..." indicates that the large segment coding is omitted here.
example 1
1 Date: Thu, 18 Apr 2002 09:32:45 0800
2 from:
3 TO:
4 Subject: Test
5 MIME-VERSION: 1.0
6 Content-Type: Text / Plain; Charset = "ISO-8859-1"
Seduce
8 this is a simple mail.
9
Example 2
1 from: "bhw98"
2 reply-to: bhw98@sina.com
3 TO:
4 Subject: Re: Help
5 x-mailer: Foxmail 4.2 [CN]
6 MIME-VERSION: 1.0
7 Content-Type: Multipart / alternative;
8 boundary = "===== 002_dragon307572345230 _ ====="
9
10
11 this is a multi-part message in mime format.
12
13 - ===== 002_dragon307572345230 _ =====
14 Content-Type: Text / Plain; Charset = "GB2312"
15 Content-Transfer-Encoding: Quoted-Printable
16
17 bluesky7810 = a3 = ac = C4 = fa = ba = c3 = a3 = a1
18
19 = a1 = a1 = a1 = a1 = D4 = DA = CF = C2 = C6 = AA = D7 = EE = BA = f3 = bf = C9 = D2 = D4 = CF = C2 = D4 = D8 = b0 = a1 = A3 = AC = C4 = E3 ... ... ...
30 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = a1 = A12003-04-07
31
32 - ===== 002_dragon307572345230 _ =====
33 Content-Type: Text / HTML; Charset = "GB2312"
34 Content-Transfer-Encoding: Quoted-Printable
35
36
37
38
39 http-equiv = 3dContent-Type>
40
... ...
79 html>
80
81 - ===== 002_dragon307572345230 _ ===== -
82
Example 3
1 return-path:
2 Delivered-to: bhw98@sina.com
3 RECEIVED: (qmail 75513 invoked by alias); 20 May 2002 02:19:53 -0000
4 RECEIVED: from unknown (Helo Bluesky) (61.155.118.135)
5 by 202.106.187.143 with smtp; 20 May 2002 02:19:53 -0000
6 Message-ID: <007F01C311C $ 742FEC00 $ 0100007F @ bluesky>
7 from: "=? GB2312? B? WLBATRXEZEZOWNCG ==? ="
8 TO: "BHW98"
9 cc:
10 Subject: =? GB2312? B? Ztk1xlbgtk6 / 2rpm0pi =? =
11 Date: Sat, 20 May 2002 10:03:36 0800
12 MIME-VERSION: 1.0
13 Content-Type: Multipart / Mixed;
14 boundary = "---- = _ nextpart_000_007a_01c3115f.80dfc5e0" 15 x-priority: 3
16 x-msmail-priority: Normal
17 X-MAILER: Microsoft Outlook Express 5.00.2919.6700
18 x-mimeole: produced by Microsoft Mimeole V5.00.2919.6700
19
20 this is a multi-part message in mime format.
twenty one
22 ------ = _ nextpart_000_007a_01c3115f.80dfc5e0
23 Content-Type: Multipart / Related; Type = "Multipart / Alternative";
24 boundary = "---- = _ nextpart_001_007b_01c3115f.80dfc5e0"
25
26
27 ------ = _ nextpart_001_007b_01c3115f.80dfc5e0
28 Content-Type: Multipart / Alternative;
29 boundary = "---- = _ nextpart_002_007c_01c3115f.80dfc5e0"
30
31 ------ = _ nextpart_002_007c_01c3115f.80dfc5e0
32 Content-Type: Text / Plain; Charset = "GB2312"
33 Content-Transfer-Encoding: Quoted-Printable
34
35 BHW98, = C4 = E3 = ba = C3!
36 = D5 = E2 = Ca = C7 = CE = D2 = D0 = B4 = B5 = C4 = B6 = E0 = B4 = AE = BF = DA = CD = A8 = D0 = C5 = B5 = C4 = B3 = CC = D0 =
37 = f2, = C7 = EB = D6 = B8 = BD = CC!
38
39
40 ------ = _ nextpart_002_007c_01c3115f.80dfc5e0
41 Content-Type: Text / HTML; Charset = "GB2312"
42 Content-Transfer-Encoding: Quoted-Printable
43
44
45
46
47