Posted: Wed Nov 21, 2007 9:23 pm Post subject: Send Mail Node:
Acolyte
Joined: 30 Oct 2007 Posts: 51
Hi
i am having some problem with the sendmail plugin node.i am getting an xml message.and i want to send this message to as an email using the sendmail plugin node.
MQInputNode-->computenode-->sendmailnode
my ESQL code in compute node is
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
SET OutputRoot.XML = InputRoot.XML.Message.Attachment;
SET OutputRoot.BLOB.BLOB = CAST(ASBITSTREAM(OutputRoot.XML OPTIONS RootBitStream) AS BLOB CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
SET OutputRoot.XML = NULL;
CREATE PREVIOUSSIBLING OF OutputRoot.BLOB DOMAIN 'XML';
SET OutputRoot.XML.Message."From" = 'karlmarx.yuvaraj@xxx.com';
SET OutputRoot.XML.Message."To" = 'jithesh.shetty@xxx.com';
SET OutputRoot.XML.message."username" = 'jitettt';
SET OutputRoot.XML.message."password" = 'zzzzz';
SET OutputRoot.XML.Message.Subject = 'Error in input file';
SET OutputRoot.XML.Message.Body ='Please Find The attachment';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'xml';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'message.txt';
after executing this i am able to see the email.i am able to see the subject in my mail but i am getting attachment with 0bytes......
Posted: Wed Nov 21, 2007 10:01 pm Post subject: Send Mail Node: Attachment contains 0 bytes....
Acolyte
Joined: 30 Oct 2007 Posts: 51
Jithesh shetty wrote:
Hi
i am having some problem with the sendmail plugin node.i am getting an xml message.and i want to send this message to as an email using the sendmail plugin node.
MQInputNode-->computenode-->sendmailnode
my ESQL code in compute node is
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
SET OutputRoot.XML = InputRoot.XML.Message.Attachment;
SET OutputRoot.BLOB.BLOB = CAST(ASBITSTREAM(OutputRoot.XML OPTIONS RootBitStream) AS BLOB CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
SET OutputRoot.XML = NULL;
CREATE PREVIOUSSIBLING OF OutputRoot.BLOB DOMAIN 'XML';
SET OutputRoot.XML.Message."From" = 'karlmarx.yuvaraj@xxx.com';
SET OutputRoot.XML.Message."To" = 'jithesh.shetty@xxx.com';
SET OutputRoot.XML.message."username" = 'jitettt';
SET OutputRoot.XML.message."password" = 'zzzzz';
SET OutputRoot.XML.Message.Subject = 'Error in input file';
SET OutputRoot.XML.Message.Body ='Please Find The attachment';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'xml';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'message.txt';
after executing this i am able to see the email.i am able to see the subject in my mail but i am getting attachment with 0bytes........
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