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.

Reply via email to