Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with mult-part mime headers

2 views
Skip to first unread message

espresso

unread,
Dec 2, 2004, 4:44:25 PM12/2/04
to
I have been trying to send a multi-part mime message from within a
java program. Unfortunately, the mime headers never get parsed. I've
tried it using both linux and Windows, with sendmail and iis
respectively. I've also sent to a number of email clients--all return
something similiar to what I got from squirrel mail below:

Return-Path: <gregp...@msn.com>
Received: from localhost (localhost [127.0.0.1])
by localhost.looksmart.com (8.12.11/8.12.11) with SMTP id
iB2LWMLE007380
for <sfgreg@localhost>; Thu, 2 Dec 2004 13:32:29 -0800
Date: Thu, 2 Dec 2004 13:32:22 -0800
Message-Id: <200412022132....@localhost.looksmart.com>
From: <gregp...@msn.com>
To: <sfg...@localhost.looksmart.com>
Subject: null
MIME-Version: 1.0
Content-Type: multipart/mixed
X-IMAPbase: 1097257898 11
Status: O
X-UID: 11
Content-Length: 298
X-Keywords:

boundary=sfgreg_2004

--sfgreg_2004
Content-Type: text/plain; charset=US-ASCII

This is a test.

--sfgreg_2004
Content-Type: application/octet-stream
Content-Transfer-Encoding: Base64
Content-Disposition: attachment;
filename="test.txt"

VGhpcyBpcyBhIHRlc3Qu
--sfgreg_2004--

-------

Can anyone tell from this what the problem might be?

Thanks

GP

Jochen Bern

unread,
Dec 2, 2004, 4:52:50 PM12/2/04
to
espresso wrote:
> Content-Type: multipart/mixed
[more headers]
[start of body]
[some empty lines even]
> boundary=sfgreg_2004
[...]

> Can anyone tell from this what the problem might be?

That should be a SINGLE header (with a separating ';' between).

Regards,
J. Bern

YourName

unread,
Dec 2, 2004, 5:19:26 PM12/2/04
to
espresso wrote:
> Subject: null
> MIME-Version: 1.0
> Content-Type: multipart/mixed
> X-IMAPbase: 1097257898 11
> Status: O
> X-UID: 11
> Content-Length: 298
> X-Keywords:
>
>
> boundary=sfgreg_2004
>

at least one thing ...
boundary is a Content-Type field parameter ie it should be on the same line,
separated by semicolon something like

Content-Type: multipart/mixed; boundary=sfgreg_2004

espresso

unread,
Dec 3, 2004, 7:59:44 PM12/3/04
to
YourName <nos...@please.com> wrote in message news:<coo49o$1cd3$1...@otis.netspace.net.au>...

> espresso wrote:
> > Subject: null
> > MIME-Version: 1.0
> > Content-Type: multipart/mixed
> > X-IMAPbase: 1097257898 11
> > Status: O
> > X-UID: 11
> > Content-Length: 298
> > X-Keywords:
> >
> >
> > boundary=sfgreg_2004
> >
>
> at least one thing ...
> boundary is a Content-Type field parameter ie it should be on the same line,
> separated by semicolon something like

Yeah, I finally figured that out--Thanks guys for the responses!
>
> Content-Type: multipart/mixed; boundary=sfgreg_2004

0 new messages