| Author | Message | 
		
		  | busy_chap | 
			  
				|  Posted: Mon Jun 25, 2007 12:25 pm    Post subject: Help regarding Mail Plugin node |   |  | 
		
		  | Acolyte
 
 
 Joined: 18 May 2006Posts: 69
 
 
 | 
			  
				| Hello everybody, I downloaded the fix pack that allows me to use the mail Plugin node. But when I checked that node , the properties only specify the information about the sender. How or where am I supposed to add the info regarding the receiever who would receive my mail?
 
 Can anyone please give me some sample ESQL's or any kind of info that will help me work with this plugin?
 Thanks in advance.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Mon Jun 25, 2007 12:30 pm    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Well, the documentation that comes with the plugin tells you how to build the XML message that it requires, which includes the <To> tag... _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Captain_EMO | 
			  
				|  Posted: Mon Jun 25, 2007 12:53 pm    Post subject: |   |  | 
		
		  |  Newbie
 
 
 Joined: 08 Feb 2007Posts: 4
 Location: St. Louis, Missouri
 
 | 
			  
				| I use the Environment tree to pass values to my e-mail compute node a la: 
 CREATE COMPUTE MODULE "DSL_RPK_DELIVERY_TO_BILL_Build e-mail"
 CREATE FUNCTION Main() RETURNS BOOLEAN
 BEGIN
 DECLARE I INT 1;
 DECLARE J INT;
 SET J = CARDINALITY(Environment.Variables.Message.Body.Line[]);
 SET OutputRoot.MQMD = InputRoot.MQMD;
 SET OutputRoot.Properties.MessageDomain = 'XML';
 SET OutputRoot.XML.Message.From = Environment.Variables.Message.From;
 SET OutputRoot.XML.Message.To = Environment.Variables.Message.To;
 SET OutputRoot.XML.Message.Subject = Environment.Variables.Message.Subject;
 WHILE I <= J DO
 SET OutputRoot.XML.Message.Body.Line[I] = Environment.Variables.Message.Body.Line[I]||'               ';
 SET I = I + 1;
 END WHILE;
 END;
 END MODULE;
 
 This compute node's out terminal is then wired up to the plug-in node.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | EddieA | 
			  
				|  Posted: Mon Jun 25, 2007 1:35 pm    Post subject: |   |  | 
		
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 2453
 Location: Los Angeles
 
 | 
			  
				| And so.  What happens.   
 Cheers,
 _________________
 Eddie Atherton
 IBM Certified Solution Developer - WebSphere Message Broker V6.1
 IBM Certified Solution Developer - WebSphere Message Broker V7.0
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Captain_EMO | 
			  
				|  Posted: Thu Jun 28, 2007 1:03 pm    Post subject: |   |  | 
		
		  |  Newbie
 
 
 Joined: 08 Feb 2007Posts: 4
 Location: St. Louis, Missouri
 
 | 
			  
				| I get an e-mail sent out to me detailing the various exceptions raised during the compute nodes that I have in the message flow. 
 As you are most likely aware, using the Environment tree allows one to pass values from one node to another.  So, I have the mail plug-in node set up as a subflow that can be snapped into place in other flows if needed.
 
 I'm sure there are a million ways to do the same thing.  I was hoping that the original member would see that the "to" field is just that...and XML tagged "to" field.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | busy_chap | 
			  
				|  Posted: Mon Jul 02, 2007 11:16 am    Post subject: Thanks guys. Let me try it out. |   |  | 
		
		  | Acolyte
 
 
 Joined: 18 May 2006Posts: 69
 
 
 | 
			  
				| Thanks guys. Let me try it out. |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |