You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Er1c <Er...@Peters.org> on 2008/02/09 18:44:24 UTC

SMTP Message being generated, rather than the body of the queue message?

One of the messages in my queue is a fully created RFC-compliant email
message that I want to pass onto the SMTP:// endpoint to have delivered...

My Route to take from a queue & deliver:
   <route>
      <from uri="activemq:queue:OutgoingEmail" />
        <recipientList>
           
<el>smtp://${in.headers.smtp_user}${in.headers.smtp_host}${in.headers.smtp_port}${in.headers.smtp_pass}#${in.headers.deliver_to}</el>
        </recipientList>
    </route>


The problem, though, is the message that gets created isn't from the actual
message body at all (see below)

From: <ca...@localhost>
To: <er...@domain.com>
Body:
Date: Sat, 9 Feb 2008 08:14:24 -0800 (PST)
From: camel@localhost
To: eric@domain.com
Message-ID: <10...@eric-desktop>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
smtp_host: localhost
JMSExpiration: 0
JMSMessageID: ID:eric-desktop-59841-1202573634501-4:1:-1:1:2
JMSDeliveryMode: 2
smtp_user: 
JMSPriority: 0
smtp_pass: 
JMSTimestamp: 1202573654008
smtp_port: :2525
JMSDestination: queue://OutgoingEmail
JMSRedelivered: True
deliver_to: eric@domain.com

ActiveMQBytesMessage {commandId =3D 4, responseRequired =3D false, messageI=
d =3D ID:eric-desktop-59841-1202573634501-4:1:-1:1:2, originalDestination =
=3D null, originalTransactionId =3D null, producerId =3D ID:eric-desktop-59=
841-1202573634501-4:1:-1:1, destination =3D queue://OutgoingEmail, transact=
ionId =3D null, expiration =3D 0, timestamp =3D 1202573654008, arrival =3D =
0, brokerInTime =3D 1202573654008, brokerOutTime =3D 1202573664540, correla=
tionId =3D null, replyTo =3D null, persistent =3D true, type =3D null, prio=
rity =3D 0, groupID =3D null, groupSequence =3D 0, targetConsumerId =3D nul=
l, compressed =3D false, userID =3D null, content =3D org.apache.activemq.u=
til.ByteSequence@1c354e6, marshalledProperties =3D org.apache.activemq.util=
..ByteSequence@fafd42, dataStructure =3D null, redeliveryCounter =3D 1,
size=
 =3D 0, properties =3D {content-type=3Dtext/plain; charset=3DUTF-8, smtp_pa=
ss=3D, smtp_host=3Dlocalhost, smtp_port=3D:2525, deliver_to=3Deric@peters.o=
rg, smtp_user=3D}, readOnlyProperties =3D true, readOnlyBody =3D true, drop=
pable =3D false} ActiveMQBytesMessage{ bytesOut =3D null, dataOut =3D null,=
 dataIn =3D null }

Body of the Message (at least what I'm posting to):

From: eric@domain.com
Reply-To: test-29@domain.com
To: test@domain.com
Bcc: eric@domain.com
Subject: hi
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8

hi


------------
Sent from Domain

How can I get the message that gets delivered be the body of the message in
the queue instead of a generated email from Camel?

Thanks,

Eric


-- 
View this message in context: http://www.nabble.com/SMTP-Message-being-generated%2C-rather-than-the-body-of-the-queue-message--tp15373608s22882p15373608.html
Sent from the Camel - Users mailing list archive at Nabble.com.