MIME protocol 说明
按照 《张孝祥Java邮件开发详解》 自己create了 emali, 其中jpg 和wav文件格式过大,删除了写内容
From redhat@diego.com Mon Nov 17 03:15:30 2014 Subject: MIME protocol instruction From: redhat <redhat@diego.com> To: redhat@diego.com Content-Type: multipart/mixed; boundary="=-RupI3c4lXME8bff/ft/d" Message-Id: <1416222929.8632.26.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-8.el5_2.2) Date: Mon, 17 Nov 2014 03:15:30 -0800 X-Evolution-Format: text/html X-Evolution-Account: 1415963235.8127.20@utm-vm14 X-Evolution-Transport: smtp://@100.1.1.2/;use_ssl=never X-Evolution-Fcc: mbox:/root/.evolution/mail/local#Sent --=-RupI3c4lXME8bff/ft/d Content-Type: multipart/related; type="multipart/alternative"; boundary="=-tdy2lUVnR0qeIVXQPjCf" --=-tdy2lUVnR0qeIVXQPjCf Content-Type: multipart/alternative; boundary="=-3hvN6+0KTxm6eZoLZtuO" --=-3hvN6+0KTxm6eZoLZtuO Content-Type: text/plain Content-Transfer-Encoding: 8bit welcome to our website. --=-3hvN6+0KTxm6eZoLZtuO Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3"> </HEAD> <BODY> <A HREF="www.baidu.com">welcome to our website.</A><BR> <BR> <IMG SRC="cid:1416222913.8632.22.camel@localhost.localdomain" ALIGN="bottom" BORDER="0"> </BODY> </HTML> --=-3hvN6+0KTxm6eZoLZtuO-- --=-tdy2lUVnR0qeIVXQPjCf Content-ID: <1416222913.8632.22.camel@localhost.localdomain> Content-Disposition: attachment; filename=201875-120HGS10143.jpg Content-Type: image/jpeg; name=201875-120HGS10143.jpg Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgEASABIAAD/4QE2RXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUA AAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAcAAAAcgEyAAIAAAAUAAAAjodp AAQAAAABAAAApAAAANAACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENTNCBXaW5kb3dz SN/6X/kF5oklr/Kk6eH4vpfps/0rf+l/5BL02f6Vv/S/8gvNEktf5UnTw/F9L9Nn+kb/ANL/AMgm ............................................ 9Nn+kb/0v/ILzVJDX+VJFeH4vpPps/0rf+l/5BL02f6Vv3O/8gvNkktf5UuFeH4vpHps/wBK3/pf +QTemz/St+53/kF5wklr/Kk6fyt9H9Nn+lb9zv8AyCb02f6Vv/S/8gvOUkNf5Uu0/lb6N6df+lb/ ANL/AMgm9Nn+lb9zv/ILzpJLX+VLtH0X02f6Vv3O/wDIJvTr/wBK37nf+QXnaSGqdP5W+ienX/pW /wDS/wDIJjXX/pW/c7/yC88SQ1XaPoRrr/0rf+l/5BL06/8ASt+53/kF56klqu0/lb6F6bP9Kz7n f+QTemz/AErPud/5BefJIa/ypOn8rfQTWz/Ss+53/kE3ps/0rPud/wCQXn6SWv8AKl2j3/ps/wBK z7nf+QSNbP8ASs+5/wD5BcAkhr/Klz33ps/0rPuf/wCQSNbP9Kz7n/8AkFwKSWv8qS976bP9Kz7n /wDkE3p1/wClZ9z/APyC4NJDVcHu/Tr/ANKz7n/+QS9Nn+lZ9z//ACC4RJLVc916df8ApWfc7/yC Y11/6Vn3P/8AILhkkNUh7n06/wDSs+5//kExrr/0rPuf/wCQXDpJarg9ua6/9Kz7n/8AkEjWz/St +5//AJBcQkhquD2xrZ/pW/c//wAgl6bP9K37n/8AkFxKSWv8qXB7U1s/0rfuf/5BHwK6/t+PFrP5 1nZ/7w/kLg0kDdHy8F4fqpJfKqSxW0//2d== --=-tdy2lUVnR0qeIVXQPjCf-- --=-RupI3c4lXME8bff/ft/d Content-Disposition: attachment; filename=dingdong.WAV Content-Type: audio/x-wav; name=dingdong.WAV Content-Transfer-Encoding: base64 UklGRqynAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YUCnAAAAAP//AAD//wAA//8A /wAAAAAAAAAAAAABAAIAAgABAAEAAQABAAAAAAAAAAAAAAAAAP///v///wAA////////AAAAAAAA AAAAAAAAAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAA//8AAAAAAAAAAP//AAAA ............................................ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA//8AAAAAAAD///// AAAAAAAA/////wAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAA/v///wAA//// ////AAAAAAAAAAAAAAAAAQAAAAAAAAAAAAEAAQAAAAAAAAAAAAAAAAD//wAAAAAAAP///v///wAA AAD//wAAAAAAAAAAAAAAAAAAAQABAAAAAAAAAAEAAAAAAAAAAAAAAAAA///+////AAD///////8A AAAAAAAAAAAAAAABAAEAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAP//AAAAAAAAAAD//wAAAAAAAAAA AAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMSVNU QAAAAElORk9JU0ZUFQAAAFNvbnkgU291bmQgRm9yZ2UgNy4wAABJRU5HAgAAACAASUNSRAsAAAAy MDAzLTEwLTI5AAI= --=-RupI3c4lXME8bff/ft/d Content-Disposition: attachment; filename=cleanfile.exe Content-Type: text/plain; name=cleanfile.exe; charset=us-ascii Content-Transfer-Encoding: 8bit this is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean filethis is a clean file --=-RupI3c4lXME8bff/ft/d--
其格式如下