Mime Attachments in SMTP

Can somebody help me in attaching a simple mime attachment in SMTP?
I have tried the following sequence, but in the mail, that is displayed
as is, even though the intention is to send an attachment

Content-Type: multipart/mixed; boundary=outer
Content-Description: multipart-1
--outer
Content-Type: text/plain
Content-Disposition: inline
Content-Description: text-part-1
Some text goes here
--outer
Content-Type: multipart/mixed; boundary=inner
Content-Disposition: attachment
Content-Description: multipart-2
--inner
Content-Type: text/plain
Content-Disposition: inline
Content-Description: text-part-2
Some more text here.
--inner
Content-Type: text/plain
Content-Disposition: attachment
Content-Description: jpeg-1
<CSV Data>
--inner--
--outer--

Am I confused? I am coding in JAVA
Thanks in advance,
Aprameya

Received on Tuesday, 13 October 1998 14:26:09 UTC