HTML Messages with alternative text bodies cannot have attached html files?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Byron_Guernsey
Posted On:   Wednesday, April 16, 2003 12:22 PM

How do you construct an HTML Message, with an alternative text body, and then attach a file to it with a name such as "myfile.html" ? Programs like Outlook appear to eliminate the attachment altogether or display it instead of the html message body.

Examining a raw message constructed by another mailer, I discovered that the boundry placed for the attachments differs from the boundries for the alternative message bodies. I couldn't find a way to do this with the JavaMail API.

Re: HTML Messages with alternative text bodies cannot have attached html files?

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, April 16, 2003 01:19 PM

My naive guess would be that you want a hierarchical MIME part structure, with an outer "multipart/alternative", and then for one of those parts, e.g. for the one you want displayed with attachments, you want it to be a "multipart/related", containing the text body and related attachments?

About | Sitemap | Contact