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 :WMB

Post new topic  Reply to topic
 Send mail Node :WMB « View previous topic :: View next topic » 
Author Message
Jithesh shetty
PostPosted: Wed Nov 07, 2007 12:13 am    Post subject: Send mail Node :WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

hi, i am using sendmailplugin node to send XML message...to email...

Folloing steps used....

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" = 'VMI.supportteam@wipro.com';
SET OutputRoot.XML.Message."To" = 'VMI.adminteam@wipro.com';
SET OutputRoot.XML.Message.Subject = 'Error in input file';
SET OutputRoot.XML.Message.Body = 'Can you see the attachment?';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'att.txt';


and also changed the Sendmail plugin MIME properties to base64...

i'm still not getting the mail..message is going to failure connection in Sendmail plugin...


Please any one help me in this.................
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Nov 07, 2007 12:22 am    Post subject: Re: Send mail Node :WMB Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Jithesh shetty,
Jithesh shetty wrote:
i'm still not getting the mail..message is going to failure connection in Sendmail plugin...
And what is the error at the failure saying ?

And whats with the creation of XML, then deletion, then again a creation ?

And are you copying headers ?

Please paste a file trace of the output generated by the code using a Trace Node.

Regards.
Back to top
View user's profile Send private message Send e-mail
Jithesh shetty
PostPosted: Wed Nov 07, 2007 12:24 am    Post subject: Re: Send mail Node :WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

Jithesh shetty wrote:
hi, i am using sendmailplugin node to send XML message...to email...

Following steps used....

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" = 'VMI.supportteam@wipro.com';
SET OutputRoot.XML.Message."To" = 'VMI.adminteam@wipro.com';
SET OutputRoot.XML.Message.Subject = 'Error in input file';
SET OutputRoot.XML.Message.Body = 'Can you see the attachment?';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)ContentType = 'text';
SET OutputRoot.XML.Message.EncodingBase64.(XML.Attribute)Name = 'att.txt';


and also changed the Sendmail plugin MIME properties to base64...

i'm still not getting the mail..message is going to failure connection in Sendmail plugin...


Please any one help me in this.................
Back to top
View user's profile Send private message
Jithesh shetty
PostPosted: Wed Nov 07, 2007 12:29 am    Post subject: i'm still not getting the mail..message is going to failure Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

hey i am not copying any headers.......just i used above code..in compute node......and i changed the properties...in sendmail node
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Nov 07, 2007 12:35 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Jithesh shetty,

You need to copy headers first....simply call the CopyMessageHeaders();

I think you should look at the documentation carefully again...they haven't asked you to create OutputRoot.XML and OutputRoot.BLOB(you cannot create two message bodies)...please use the code from the document, it is a wonderful piece of work...

I think they meant:

--OutputRoot
---------Properties
---------MQMD
---------XML
-------------Message(As per example in pdf)
----------------From
----------------To
----------------Subject
----------------Body(your attachment goes here as CDATA)

Regards.
Back to top
View user's profile Send private message Send e-mail
Jithesh shetty
PostPosted: Sun Nov 11, 2007 10:38 pm    Post subject: Send Mail Plugin : WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

hi,

i am using Send mail node to send a mail to the given mail id......

While running the message flow.......following error occurred.

454 5.7.3 Client does not have permission to submit mail to this server.


Message is going to failure terminal in send mail node.......


Please any one help me in this....


Regards
Jithesh Shetty
Back to top
View user's profile Send private message
Jithesh shetty
PostPosted: Sun Nov 11, 2007 10:47 pm    Post subject: Re: Send Mail Plugin : WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

Jithesh shetty wrote:
hi,

i am using Send mail node to send a mail to the given mail id......

While running the message flow.......following error occurred.

1. 454 5.7.3 Client does not have permission to submit mail to this server.

2. Message is going to failure terminal in send mail node.......

3. And also i am not attaching the file....i am just copying the entire XML message into BODY......is it possible to do that...

this is ESQL code i am using

CREATE COMPUTE MODULE Test_Mail_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
SET OutputRoot.XML.Message."From" = 'VMI.supportteam@wipro.com';
SET OutputRoot.XML.Message."To" = 'jithesh.shetty@wipro.com';
SET OutputRoot.XML.Message.Subject = 'Error in input file';
SET OutputRoot.XML.Message.Body = InputRoot.XML;
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER;
DECLARE J INTEGER;
SET I = 1;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;

Please any one help me in this....


Regards
Jithesh Shetty
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Sun Nov 11, 2007 10:55 pm    Post subject: Re: Send Mail Plugin : WMB Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Jithesh shetty,
Jithesh shetty wrote:
SET OutputRoot.XML.Message.Body = InputRoot.XML;
I doubt your input message body will get attached this way, you will need to use ASBITSTREAM...and also, I thought 'Body' was for attachments(so it should have been in BLOB format )

But that is not your bigger problem....you need to know how to communicate to your Mail server...I think you should talk to your admin regarding the SMTP access to the mail server(or however the doc says you need to get it working)...

Regards.
Back to top
View user's profile Send private message Send e-mail
Jithesh shetty
PostPosted: Sun Nov 11, 2007 11:02 pm    Post subject: Send Mail Plugin : WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

hi,


That means we can't copy entire message into BODY.....

hey i don't have any doc regarding send mail node.....if u have any PDF please send it to me.....

Regards
Jithesh Shetty
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Sun Nov 11, 2007 11:14 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Jithesh shetty,

IA07: WBIMB - Sendmail Plug-In
Didn't you get the node files from this link

Regards.
Back to top
View user's profile Send private message Send e-mail
Jithesh shetty
PostPosted: Sun Nov 11, 2007 11:29 pm    Post subject: Send Mail Plugin : WMB Reply with quote

Acolyte

Joined: 30 Oct 2007
Posts: 51

yes i have that pdf..
but in that nothing mention about...how to copy entire message in to body...

regards
jeethu
Back to top
View user's profile Send private message
Gaya3
PostPosted: Sun Nov 11, 2007 11:32 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Its perfectly mentioned in the document.

There is a sample flow described

Go through that

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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 :WMB
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.