Hi,

Your code isn't correct,  it should be "text/plain" but not "plain/text" per 
the mail cap. 
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-6-9, at 下午10:54, Nikos wrote:

> 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.

Reply via email to