Thanks Ashwin and Claus for valuable suggestions. I have applied your
suggestion using Processor and Exchange.  


template.send(smtp://testServer@host.mailbank?&password=test123&contentType=text/html",ExchangePattern.InOnly,
new EmailProcessor(to, from, byteArrayOutputStream, imagesData));

EmailProcessor implements Processor interface. I have added all the
necessary implementation i.e add headers and attachements to the exchange
object. Camel rocks !!...




--
View this message in context: 
http://camel.465427.n5.nabble.com/ProducerTemplate-for-sending-mails-with-attachements-tp5605511p5611283.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to