how to set the Mail Message Content-Type
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Johannes_Huettemeister
Posted On:   Saturday, April 12, 2003 01:54 PM

Hi,
I need to set the Mail content type to "multipart/related". The Message class automatically sets it to "multipart/mixed".
I cannot override it with the setHeader Method on the Message directly.
Is there a way to do this?
cheers jo.

Re: how to set the Mail Message Content-Type

Posted By:   Rob_Boellaard  
Posted On:   Friday, April 18, 2003 04:38 AM

Hi



Make a message object and a multipart object. Define the multipart as related. Then add this line:



message.setContent(multipart);



hope it helps, Rob
About | Sitemap | Contact