| Author | 
		  Message
		 | 
		
		  | ram_svnit | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 12:44 am    Post subject: how to send attachment using EmailOutput node? | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Aug 2009 Posts: 20 Location: India 
  | 
		  
		    
			  
				Hi,
 
I have a message flow with MQInput, Compute and  EmailOutput nodes.
 
The input message is an XML message. The requirement is to convert the XML to CSV format and mail it as a file attachment. I am able to convert to CSV format in the compute node. But how do i configure EmailOutput node so that it can be sent as an attachement instead of message body? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gregop | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 12:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 24 Nov 2006 Posts: 81
  
  | 
		  
		    
			  
				Place the attachment data into OutputLocalEnvironmentDestination.Email.Attachment.Content
 
 
Set OutputLocalEnvironmentDestination.Email.Attachment.ContentName and ContentType.
 
 
See info center: EmailOutput | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ram_svnit | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 1:09 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Aug 2009 Posts: 20 Location: India 
  | 
		  
		    
			  
				where do i write that coding?in the compute node?Please excuse my ignorance..   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Gaya3 | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 1:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US 
  | 
		  
		    
			  
				would you mind to search in this forum, this been discussed a lot here.. _________________ Regards
 
Gayathri
 
-----------------------------------------------
 
Do Something Before you Die | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ram_svnit | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 4:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 28 Aug 2009 Posts: 20 Location: India 
  | 
		  
		    
			  
				| let me be specific- how do i configure EmailOutput node dynamically from LocalEnvironmnet or EmailOutputHeader?? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gregop | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 4:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 24 Nov 2006 Posts: 81
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 8:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				I'll give my standard reply to this question.
 
 
Install the Sample Email Flow. It can handle attachments.
 
 
I did this, added a trace node or two to the flow and understood what had to be done to make it work especially with binary attachments (output from Zip node) _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 9:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				| It is also quite fun to play with building messages in the MIME domain. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Sep 24, 2009 9:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	| It is also quite fun to play with building messages in the MIME domain. | 
   
 
 
 
I enjoy that. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |