From: To: Subject: multipart/mixed MIME-Version: 1.0 Content-type: multipart/mixed; boundary="boundary" MIME mixed messages specify that there are multiple messages of possibly different types included in the message. All peices will be availble by the user-agent if possible. The header 'Content-disposition: inline' states that if possible, the user-agent should display the contents of the attachment as part of the email, rather than as a file, or message attachment. (This message will not be seen by the user) --boundary Content-type: text/html Content-disposition: inline Test message one --boundary Content-type: text/plain; charset=us-ascii; name="testfile" Content-transfer-encoding: base64 IyEvYmluL2Jhc2gNCg0KY2xlYXINCmVjaG8gIi4tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS4i DQplY2hvICJ8IE1hcmNoZXcuSHlwZXJyZWFsIHByZXNlbnRzOiB2aXhpZSBj cm9udGFiIGV4cGxvaXQgIzcyODM3MSB8Ig0KZWNobyAifD09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09fCINCmVjaG8gInwgU2ViYXN0aWFuIEtyYWhtZXIgPGtyYWhtZXJAc2Vj dXJpdHkuaXM+ICAgICAgICAgICAgICAgICAgIHwiDQplY2hvICJ8IE1pY2hh --boundary--