This is a gotcha more people encounter. However it's very easy to solve. To remove all headers use a wildcard expression:
from(...).removeHeaders("*").to("smtp://....") Similarly to remove all headers except some of your own (myheader1 and myheader2) use a wildcard with a vararg: from(...).removeHeaders("*", "myheader1", "myheader).to("smtp://....") Again to remove only Camel headers but no other transport headers: from(...).removeHeaders("Camel*").to("smtp://....") I think in your case removeHeaders("*") will suffice. Good luck! Regards, Richard On Sat, Dec 29, 2012 at 8:02 PM, JackMigger <j.dorfsch...@web.de> wrote: > Hi, > > I'm querying a database with the iBatis component, then splitting the > resultlist into single messages. > These are sent each to email addresses from the result set - which works > fine and wonderfully easy with the camel mail component. > > But when the receiver of that mail will inspect the details or properties > of > the received mail, he'll see a lot of headers in the mail (e.g. my > resultlist or BCC header) that I don't want to be neither public nor sent. > > Is it possible e.g. by certain parameters to send *nothing but the body* of > the camel message as plain text mail message ? > > (I could remove some of my own headers before sending - but what about BCC > ? > I'd like to filter out all unwanted headers by configuration to avoid > private data going public incidentially). > > Thanks for any help.... > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-avoid-sending-message-headers-with-mail-component-tp5724719.html > Sent from the Camel - Users mailing list archive at Nabble.com. >