Now I need to decide the email recipient when i actually send the request and
not in configuration time ( with the '[EMAIL PROTECTED]'). Is
there any way of specifying this address with a header in the same way that
the subject?
from("direct:a")
.to("smtp://[EMAIL PROTECTED]:[EMAIL PROTECTED]")
Exchange response = template.request("direct:a", new Processor() {
public void process(Exchange exchange) throws Exception {
Message in = exchange.getIn();
in.setBody("------");
in.setHeader("subject", "My Subject");
}
});
--
View this message in context:
http://www.nabble.com/How-to-send-a-mail-tf4787595s22882.html#a13705382
Sent from the Camel - Users mailing list archive at Nabble.com.