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 » Send Mail Node:

Post new topic  Reply to topic
 Send Mail Node: « View previous topic :: View next topic » 
Author Message
Jithesh shetty
PostPosted: Wed Nov 21, 2007 9:23 pm    Post subject: Send Mail Node: Reply with quote

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......

Please any one help me in this
Back to top
View user's profile Send private message
Jithesh shetty
PostPosted: Wed Nov 21, 2007 10:01 pm    Post subject: Send Mail Node: Attachment contains 0 bytes.... Reply with quote

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........

is there anything missed in ESQL code.........

Please any one help me in this
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 » Send Mail Node:
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.