Author |
Message
|
Jithesh shetty |
Posted: Wed Nov 07, 2007 12:13 am Post subject: Send mail Node :WMB |
|
|
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 |
|
 |
elvis_gn |
Posted: Wed Nov 07, 2007 12:22 am Post subject: Re: Send mail Node :WMB |
|
|
 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 |
|
 |
Jithesh shetty |
Posted: Wed Nov 07, 2007 12:24 am Post subject: Re: Send mail Node :WMB |
|
|
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 |
|
 |
Jithesh shetty |
Posted: Wed Nov 07, 2007 12:29 am Post subject: i'm still not getting the mail..message is going to failure |
|
|
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 |
|
 |
elvis_gn |
Posted: Wed Nov 07, 2007 12:35 am Post subject: |
|
|
 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 |
|
 |
Jithesh shetty |
Posted: Sun Nov 11, 2007 10:38 pm Post subject: Send Mail Plugin : WMB |
|
|
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 |
|
 |
Jithesh shetty |
Posted: Sun Nov 11, 2007 10:47 pm Post subject: Re: Send Mail Plugin : WMB |
|
|
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 |
|
 |
elvis_gn |
Posted: Sun Nov 11, 2007 10:55 pm Post subject: Re: Send Mail Plugin : WMB |
|
|
 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 |
|
 |
Jithesh shetty |
Posted: Sun Nov 11, 2007 11:02 pm Post subject: Send Mail Plugin : WMB |
|
|
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 |
|
 |
elvis_gn |
Posted: Sun Nov 11, 2007 11:14 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
Jithesh shetty |
Posted: Sun Nov 11, 2007 11:29 pm Post subject: Send Mail Plugin : WMB |
|
|
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 |
|
 |
Gaya3 |
Posted: Sun Nov 11, 2007 11:32 pm Post subject: |
|
|
 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 |
|
 |
|