Author |
Message
|
rkford11 |
Posted: Tue Sep 28, 2004 9:42 am Post subject: error in msg flow while using sendmailplugin node |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
I have designed a simple msg flow with i/p, sendmailplugin and o/p node. i have mentioned the SMTP server to be local host but i am not able to receive the email at the output node.
will somebody please help me with this flow especially sendmailplugin node.
thanks |
|
Back to top |
|
 |
kirani |
Posted: Tue Sep 28, 2004 9:43 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Do you have SMTP server/service running on your localhost? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
mayur2378 |
Posted: Tue Sep 28, 2004 11:12 am Post subject: |
|
|
Apprentice
Joined: 26 May 2004 Posts: 47
|
Also did you follow the correct format to create the email message.
That kinda message do u get in your trace...
Mayur |
|
Back to top |
|
 |
rkford11 |
Posted: Tue Sep 28, 2004 12:34 pm Post subject: |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
mayur2378 wrote: |
Also did you follow the correct format to create the email message.
That kinda message do u get in your trace...
Mayur |
i have changed SMTP server from local host to a remote host and i have the qmgr and i/p and o/p queues on my local system. i did follow this format
<Message> <From> </From> <To>abc@gmail.com </To> <Subject>test </Subject> <Body>mail </Body> <Base64 ContentType=" " Name=" "><![CDATA[ base64 data ]]></Base64> </Message>
but still i am not able to receive the mail and also the message in the o/p queue. it is staying in the i/p queue only.
please let me know where i am making the mistake.
thanks |
|
Back to top |
|
 |
mayur2378 |
Posted: Tue Sep 28, 2004 12:53 pm Post subject: |
|
|
Apprentice
Joined: 26 May 2004 Posts: 47
|
try creating an Email Message in a compute node before the Plugin and see what happens. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 28, 2004 1:24 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The SMTP server has to point to a machine that is running an SMTP server.
Add a trace node followed by a throw node to the Catch terminal of your MQInput node. Also, configure a backout queue and a backout requeue count on your input queue. Configure the trace node appropriately for your installation, at a minimum include ${Root} and ${ExceptionList} in the pattern.
Your message flow is throwing an exception somewhere. This is causing the message to be rolled back to the input queue and retried. If you do the above things, then the message will only be retried a certain number of times, and you can see what is going wrong as well. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Ramphart |
Posted: Wed Sep 29, 2004 4:54 am Post subject: |
|
|
 Disciple
Joined: 21 Jul 2004 Posts: 150 Location: South Africa, JHB
|
rkford11 wrote: |
i did follow this format
<Message> <From> </From> <To>abc@gmail.com </To> <Subject>test </Subject> <Body>mail </Body> <Base64 ContentType=" " Name=" "><![CDATA[ base64 data ]]></Base64> </Message>
but still i am not able to receive the mail and also the message in the o/p queue. it is staying in the i/p queue only.
please let me know where i am making the mistake.
thanks |
I've seen that the sendplugin node does not always handle exceptions elegantly when certain conditions occur. For instance it fall over if it can't find the From field in the XML message. You should really look at your windows event log in this case because your error messages will more than likely be there.
Be sure to hook-up the failure terminal of the sendplugin to an output Queue then at least you'll be able to trap those errors thats handled by the node (e.g SMTP server, port problems, etc.)
One more thing worth mentioning - ive seen the sendplugin node fail when the input XML has a declaration at the beginning, like <?xml version="1.0"?>. Make sure that your XML message starts with the <Message> tag.
Regards _________________ Applications Architect |
|
Back to top |
|
 |
|