camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From developpef <src...@orange.fr>
Subject Re: Mail attachements
Date Fri, 21 Dec 2012 09:13:09 GMT
Hello,

I tried adding this line, but still the same error, with my MailAttacher :

public class MailAttacher {
    
    private LogFileResolver logResolver;
    
    public void attachLog(Exchange exc) {
        File logToAttach = logResolver.getCurrentLogFile();
        exc.getIn().addAttachment(logToAttach.getName(), 
                new DataHandler(new FileDataSource(logToAttach)));
        exc.setProperty(Exchange.CHARSET_NAME, "UTF-8");
    }

}

Any more ideas?



-----
http://developpef.blogspot.com
--
View this message in context: http://camel.465427.n5.nabble.com/Mail-attachements-tp5724461p5724490.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message