ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SendMail Node (IA07) doesn't send multiple emails from flow

Post new topic  Reply to topic
 SendMail Node (IA07) doesn't send multiple emails from flow « View previous topic :: View next topic » 
Author Message
jeffisom
PostPosted: Fri Oct 12, 2007 12:55 pm    Post subject: SendMail Node (IA07) doesn't send multiple emails from flow Reply with quote

Newbie

Joined: 11 Oct 2007
Posts: 7

I am using the IA07 SupportPac version 1.10 to send exception emails to our ticket tracking system. Our process collects exceptions and messages throughout and then if any exceptions exist it is put on a queue for the Flow I'm building to pick up.

My flow picks the message up just fine and when I get to the section where I check for multiple messages, I loop through them and propagate a message for the SendMail node to the 'out1' terminal of the compute node for each exception.

Debugging shows that this is happening and all 3 messages in my test case are propagated to the SendMail node and there is even the successful message from the SendMail node's 'out' terminal placed in a queue for all three messages. But I only get one email message. Sometimes the first one and sometimes the second or third one.

Initially the SendMail node was in a subflow so all 3 calls to it were within the same flow context, but I even pulled it out into it's own full-fledged flow and had the same results. 3 messages put on the queue by the propagate from the 'out1' terminal, all 3 consumed by the SendMail flow and 3 successful messages in the out queue for the SendMail flow

The only other pertinent information I can think of is that no matter what the timing the message put time for the success messages is always identical.

Has anyone seen this behavior?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Oct 12, 2007 4:39 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

...

What does your mailserver log say?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeffisom
PostPosted: Sun Oct 14, 2007 12:20 pm    Post subject: Reply with quote

Newbie

Joined: 11 Oct 2007
Posts: 7

I'm working on getting that information from our exchange admins, but subsequent behavior is making me think that the messages are being filtered by the mail server. I'll let you know what I find out Monday.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Mon Oct 15, 2007 4:02 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

jeffisom wrote:
I'm working on getting that information from our exchange admins, but subsequent behavior is making me think that the messages are being filtered by the mail server. I'll let you know what I find out Monday.


Two additional questions :

How do you create message ?
How do you separate e-mails ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jeffisom
PostPosted: Mon Oct 15, 2007 8:54 am    Post subject: Reply with quote

Newbie

Joined: 11 Oct 2007
Posts: 7

The Email messages are created with the following ESQL
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
DECLARE CCB_Char CHAR;
DECLARE myBroker CHAR;
SET myBroker = BrokerName;

SET CCB_Char = CAST(InputRoot."BLOB"."BLOB" AS CHAR CCSID 1208 ENCODING InputRoot.MQMD.Encoding);
SET OutputRoot.XML.Message."From" = myBroker||'@standard.com';
SET OutputRoot.XML.Message."To" = 'jisom@standard.com';
SET OutputRoot.XML.Message.Subject = Environment.Subject;
SET OutputRoot.XML.Message.Body = CCB_Char;

RETURN TRUE;
END;

The separate emails are created by propagating a blob message with the CCB_Char data to the compute node with the above ESQL for each exception in the incoming message. The CCB_Char message blob is the FW format data required by our ticketing system.
Back to top
View user's profile Send private message
ggriffith
PostPosted: Wed Oct 17, 2007 8:30 am    Post subject: Reply with quote

Acolyte

Joined: 17 Oct 2007
Posts: 67

You'll find that the MQMD.MsgId is being passed to the mail server and used as the mail MESSAGE-ID. As the MsgId is the same for all propagated messages, the mail system is probably filtering out 2 of your messages. Try assigning a new unique MsgId before propagating, possibly using the UUID or TIMESTAMP functions.
Back to top
View user's profile Send private message
jeffisom
PostPosted: Wed Oct 17, 2007 12:30 pm    Post subject: Reply with quote

Newbie

Joined: 11 Oct 2007
Posts: 7

Quote:
MQMD.MsgId is being passed to the mail server and used as the mail MESSAGE-ID

That was the missing piece to the puzzle!

Thanks ggriffith! I now get a slew of messages in my inbox!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SendMail Node (IA07) doesn't send multiple emails from flow
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.