Hi everyone!
I have simple example for sending e-mail on every message that's
received. After e-mail is sent there is output to console "null".
Where is that "null" coming from?
This is simple-email-mule-config.xml
<mule xmlns="
http://www.mulesource.org/schema/mule/core/2.0"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="
http://www.springframework.org/schema/beans"
xmlns:smtp="
http://www.mulesource.org/schema/mule/smtp/2.0"
xmlns:email="
http://www.mulesource.org/schema/mule/email/2.0"
xmlns:stdio="
http://www.mulesource.org/schema/mule/stdio/2.0"
xsi:schemaLocation="
http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.mulesource.org/schema/mule/core/2.0http://www.mulesource.org/schema/mule/core/2.0/mule.xsd http://www.mulesource.org/schema/mule/smtp/2.0http://www.mulesource.org/schema/mule/smtp/2.0/mule-smtp.xsd http://www.mulesource.org/schema/mule/email/2.0http://www.mulesource.org/schema/mule/email/2.0/mule-email.xsd http://www.mulesource.org/schema/mule/stdio/2.0http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd">
<model name="MailExample">
<service name="helloService">
<inbound>
<stdio:inbound-endpoint system="IN" />
</inbound>
<outbound>
<outbound-pass-through-router>
<smtp:outbound-endpoint
name="EMail" host="smtp.example.com"
port="25"
to="
mail@..." from="
mule@..."
subject="Mule e-mail">
</smtp:outbound-endpoint>
</outbound-pass-through-router>
</outbound>
</service>
</model>
</mule>
This is output (part):
DEBUG new copy of message for
Thread[connector.smtp.0.dispatcher.1,5,main]
DEBUG Connecting: SmtpMessageDispatcher{this=dada24,
endpoint=smtp://smtp.example.com:25, disposed=false}
DEBUG MuleSession local properties =============
DEBUG mail.smtp.rsetbeforequit: true
DEBUG mail.debug: true
DEBUG mail.smtp.socketFactory.port: 25
DEBUG mail.smtp.host: smtp.example.com
DEBUG mail.smtp.auth: false
DEBUG skipped 0
DEBUG System global properties =============
DEBUG skipped 52
DEBUG Creating mail session: host = smtp.example.com, port = 25, user =
null, pass = null
INFO Connected: SmtpMessageDispatcher{this=dada24,
endpoint=smtp://smtp.example.com:25, disposed=false}
DEBUG Applying transformer ObjectToMessage
(org.mule.transport.email.transformers.ObjectToMimeMessage)
DEBUG Object before transform:
org.mule.transport.DefaultMessageAdapter/org.mule.transport.DefaultMessa
geAdapter@3aff84{id=d32fda3e-41fe-11dd-8a94-db52a627ed08,
payload=java.lang.String,
correlationId=d32fda3e-41fe-11dd-8a94-db52a6...
DEBUG Constructing email using:
To:
mail@...:
mule@...: nullBCC: nullSubject: Mule
e-mailReplyTo: nullContent type: text/plainPayload type:
java.lang.StringCustom Headers: {}
DEBUG Object after transform: javax.mail.internet.MimeMessage@1f08ed8
DEBUG The transformed object is of expected type. Type is: MimeMessage
DEBUG Email message sent with subject'Mule e-mail' sent- , From:
mule@... , To:
mail@... , Cc: , Bcc: , ReplyTo:
mule@...
null
Regards,
Denis
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email