Posted: Fri Aug 22, 2008 3:15 am Post subject: How to send attachment using SendMailPlugIn????
Apprentice
Joined: 05 Jan 2005 Posts: 25 Location: India
Hello,
I am using SendMailPlugIn node(IA07), MB 6 on Solaris. I am able to send email but finding hard time with attachment. I wrote a flow like
MQInputNode -> ComputeNode > SendmailPlugInNode > MQOutPutNode.
In the compute Node I wrote the following
CALL CopyMessageHeaders();
SET OutputRoot.XML.Message.To = <A Valid email ID>
SET OutputRoot.XML.Message.Subject = 'Test mail email plugin node';
SET OutputRoot.XML.Message.Body = 'Attachment Test';
CREATE FIELD OutputRoot.XML.Message.EncodingBase64;
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute) ContentType = 'text/plain';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'Attachment.xml';
SET OutputRoot.XML.Message.EncodingBase64.(XML.CDataSection) = CAST(ASBITSTREAM(InputBody) AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId);
I did put a BLOB message to Input Queue. I can see all the elements are present in the Output Queue, I am getting the email but with no attachment. I can see that all the elements are being identified in following in /tmp/SendMailPlugInDebug.txt with return code 0. Could anyone please help me on this????
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