camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Howto get an SMTP Endpoint to dynamically send to a Header Value
Date Tue, 05 Feb 2008 15:31:38 GMT
Apologies, I made a typo...

On 05/02/2008, Er1c <Eric@peters.org> wrote:
>
> Thanks for the response, I hadn't considered the RecipientList approach...
>
> I tried something like:
>
>     <route>
>       <from uri="activemq:queue:OutgoingEmail" />
>         <recipientList>
>           <recipients>
>             <el>"smtp://localhost#${in.header.deliver_to}"</el>


${in.headers.deliver_to}

i.e. its the plural headers which maps to the Message.getHeaders() method

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message