Friday, December 13, 2002 11:15 AM
My multiple mail attachment is in form of input stream along with message body.
Here is code :
DataHandler dataHandler = new DataHandler( inputstream, "application/octet-stream" );
DataContentHandlerFactory dchf = new SimpleDCF("application/octet-stream:com.util.PlainDCH
Above I have made use of 2 classes SimpleDCF,PlainDCH given in Demo example of javamail-1.3 .
Mime type is application/octet-stream to support all file type attachments.
Mail with attachment is going. But the attachment is not opening.
Pls help me out.
Re: Mail attachment in form of INput Stream
Sunday, December 15, 2002 07:10 AM