Hi Bharath

I am using Fuse version 2.10.0.fuse-71-047.. Seems like there is some
serious issue with attaching files..
I modified my program and added the processor right before the email
component.

My processor code is as follows
*
public class AddAttachment implements Processor{

        @Override
        public void process(Exchange exchng) throws Exception {
                // TODO Auto-generated method stub
                
                Message in = exchng.getIn();
                
        /*      in.addAttachment("payload", new DataHandler(new FileDataSource(
                                "d:/payload.txt")));*/
                
                exchng.getOut().addAttachment("payload.txt", new DataHandler(new
FileDataSource(
                                "d:/payload.txt")));
}
}
*

payload.txt is the file which i want to attach and send ..
Could you suggest.

Reji



--
View this message in context: 
http://camel.465427.n5.nabble.com/Email-Attachments-Adding-to-Exchange-Attachments-tp5739863p5739972.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to