camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AOladipupo <>
Subject Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.
Date Thu, 10 Nov 2016 14:13:54 GMT
you need to set the content type as part of the uri options or in the
exchange header (will overite the uri values). See modified section of your
code below:

                public void process(Exchange exchange) throws Exception { 
                        Message in = exchange.getIn(); 
                        FileDataSource file = new
                        in.addAttachment("report.txt", new
                        *in.setHeader("contentType", "text/html");*

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message