You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ian de Beer <ia...@zenaptix.com> on 2007/09/30 13:23:53 UTC

Mail Component: Setting the mail subject and recipients

Hi 
I want to set the subject of a message that is sent from my custom component
to an smtp endpoint. I have tried setting the headers on the message that is
forwarded:
exchange.getOut().setHeader("subject", "test subject");
This has no effect. Any suggestion on how I can do that.
I  also would like to declare the recipients dynamically when the message is
sent and not at configuration time - is that possible? Currently I do it as
part of the uri:
to("smtp://zzz@localhost#recipent1@mail.com,recipient2@mail2.com")
Regards
Ian
-- 
View this message in context: http://www.nabble.com/Mail-Component%3A-Setting-the-mail-subject-and-recipients-tf4543058s22882.html#a12964862
Sent from the Camel - Users mailing list archive at Nabble.com.