How implement new DataContentHandler for new Content Types in javamail?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, July 3, 2001 12:24 PM

Hi, I want to send an message with an unsupported content type (for javamail). So I get the exception javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/bla if I want to make a MimeMessage like that: Mimemessage msg = new MimeMessage(); MimeBodyPart bp = new MimeBodyPart(); bp1.setContent("Version 1", "application/pgp-encrypted"); .... mp.addBodyPart(bp1); msg.addContent(mp,"multipart/encrypted"); So what classes should I extend from the JAF Framework? Is there a tutorial or something for that. I found nothing helpful... Alex    More>>

Hi,

I want to send an message with an unsupported content type (for javamail). So I get the exception

			
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/bla


if I want to make a MimeMessage like that:

			
Mimemessage msg = new MimeMessage();
MimeBodyPart bp = new MimeBodyPart();
bp1.setContent("Version 1", "application/pgp-encrypted");
....
mp.addBodyPart(bp1);
msg.addContent(mp,"multipart/encrypted");



So what classes should I extend from the JAF Framework? Is there a tutorial or something for that. I found nothing helpful...

Alex    <<Less
About | Sitemap | Contact