Hi

I wonder if you need to use html content in your mail to attach images
inside the mail.

Search the web and places like SO you can find some details such as
http://stackoverflow.com/questions/6706891/embedding-image-in-html-email

On Tue, Jan 7, 2014 at 4:58 PM, nono <[email protected]> wrote:
> Below is example of my code , i want to embed logo.gif into email body.it
> does not work, it only attached logo as a file in emailCould anyone give me
> some hints? Thanks!class EmailProcessor implements Processor {    @Override
> public void process(Exchange exchange) throws Exception {
> //exchange.getIn().setHeader("contentType", "image/gif");
> exchange.getIn().addAttachment("test_logic name.pdf", new DataHandler(new
> FileDataSource("target/test-classes/test xxxx.pdf")));
> exchange.getIn().addAttachment("logo.gif", new DataHandler(new
> FileDataSource("target/test-classes/logo.gif")));    }}
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/hwo-to-embed-image-in-email-tp5745681.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to