I'm trying to figure out an easy way to use Spring XML (well anything really)
to specify the delivery address of an SMTP endpoint from a header

This is how I have the "generic" SMTP delivery:
    <route>
      <from uri="activemq:queue:OutgoingEmail" />
      <to uri="smtp://localhost" />
    </route>

I have a header set called "deliver_to" that has the email address I'd want
to email.
Ideally, I would like to specify the from information (at least from an
envelope standpoint) dyanmically as well - but I've already create standard
evelope things like From:, Reply-To:, Subject: in the message being routed
to the OutgoingEmail queue.


Thanks,

Eric
-- 
View this message in context: 
http://www.nabble.com/Howto-get-an-SMTP-Endpoint-to-dynamically-send-to-a-Header-Value-tp15254242s22882p15254242.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to