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 » IA07 file attachments

Post new topic  Reply to topic
 IA07 file attachments « View previous topic :: View next topic » 
Author Message
jrjoe
PostPosted: Tue Oct 24, 2006 9:47 am    Post subject: IA07 file attachments Reply with quote

Acolyte

Joined: 20 Jan 2003
Posts: 60

I have seen a lot regarding how to send emails with attachments but have a simple question. How does the plug-in know where to get the file?
Does it need a path name or does the whole thing message and attachment file need to be put on the Input Node?

I have a message flow:

MQInput -> Compute -> SendMail --> FailMQOut

I put the full path name in the Name = :

<Message>
<From>test@hotmail.com</From>
<To>test@hotmail.com</To>
<Subject>An e-mail with a txt attachment sent by WBI MB</Subject>
<Body>(See attached file: Test.txt)</Body>
<Encoding7Bit ContentType="text/plain" Name="c:\temp\xWMQ.txt">
<![CDATA[http://edi.services.ibm.com/mqseries/spec_sheets.shtml]]>
</Encoding7Bit>
</Message>

Is this correct or am I way off?

Thanks in advance
Back to top
View user's profile Send private message
vk
PostPosted: Tue Oct 24, 2006 3:00 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

The SendMailPlugIn node does not pick up a file from a directory and send as attachment. It creates an attachment with the name specified in the XML having the data given in CDataSection.

Since you are using IA07, I assume you are working on WMQI v2.1 broker. Here the attachment data has to be encoded in Base64 before passing it on to the node in CDataSection.

Version 1.9 of the node, which can be used with WMB v6 will by itself do the Base64 conversion.

Regards,
VK.
Back to top
View user's profile Send private message
jrjoe
PostPosted: Tue Oct 24, 2006 5:54 pm    Post subject: Reply with quote

Acolyte

Joined: 20 Jan 2003
Posts: 60

I am actual using version 1.9 and using the SMTP server. So how is the attachment then sent? How does the plug-in get the attachment to encode it base64 or 7bit?

So for my confusion on this.

Thanks in advance
Back to top
View user's profile Send private message
vk
PostPosted: Tue Oct 24, 2006 9:08 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Version 1.9 of the node does the conversion automatically. You just need to give the data to be sent in the attachment as BLOB.

There are some other posts here around this. You can refer to them.

Regards,
VK.
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 » IA07 file attachments
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.