Can I send an attachment file without using "JavaBeans Activation Framework"?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, June 13, 2001 02:47 AM

Generally, in sending an attachment file, one use a 'setDataHandler' method of 'MimeBodyPart' class with 'FileDataSource' object.

ex>
--------------------------------------
FileDataSource fds = new FileDataSource(filename);
mbp2.setDataHandler(new DataHandler(fds));
--------------------------------------

Can I send an attachment file without using "JavaBeans Activation Framework"
likely using 'writeTo' method of 'MimeBodyPart' class..?

Re: Can I send an attachment file without using "JavaBeans Activation Framework"?

Posted By:   John_Zukowski  
Posted On:   Wednesday, June 13, 2001 10:27 PM

I'm not quite sure what you are asking here. The JavaMail API requires the JavaBeans Activation Framework to be present.


If you want to talk to the socket directly, you can format the message yourself and use neither the JavaMail API nor the JavaBeans Activation Framework. The RFCs already mentioned in the FAQ describe how to format the content.

About | Sitemap | Contact