Posted: Tue Oct 24, 2006 9:47 am Post subject: IA07 file attachments
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>
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.
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?
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