Hi JB,
Yes. Please find below the route.
from("file:{{foldername}}?recursive=true&readLock=changed")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
File file = new File("/home/user1/testfile.txt");
exchange.getIn().addAttachment("testfile.txt",
newDataHandler(file,"plain/text"));
}
})
.log("Attachment added.")
.to(smtp://...)
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Cannot-send-email-with-attachment-tp5720765p5720768.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.