Author |
Message
|
Abhinay185127 |
Posted: Wed Jun 26, 2013 1:11 am Post subject: Reg : Email Node email text dynamic creation |
|
|
Acolyte
Joined: 20 May 2013 Posts: 58
|
Hi
I am developing a flow which in turn is connected to a subflow that manges exceptions and i have to send those exceptions via email.
The emeil text i have to populate as the error text that i am receivng in MQ.
So i am storing that error text in environment and trying to set it to the email text. Below is the code.
Code: |
CREATE LASTCHILD OF OutputRoot DOMAIN 'BLOB';
SET MailText = Environment.variable."MQ-RESPONSE-O"."RESPONSE-O"."ERROR-TEXT";
SET OutputRoot.BLOB.BLOB = CAST(MailText AS BLOB CCSID InputRoot.Properties.CodedCharSetId); |
But in the debugger mode nothing is getting populated in BLOB although if insted i am using a simple string
SET OutputRoot.BLOB.BLOB = 'xyz';
its working fine.
Please let me know where i am going wrong..... |
|
Back to top |
|
 |
Abhinay185127 |
Posted: Wed Jun 26, 2013 2:41 am Post subject: Email Node email text dynamic creation |
|
|
Acolyte
Joined: 20 May 2013 Posts: 58
|
Hi
I am able to convert it into BLOB was not using ENCODING.
I have a small query though here we are converting the ERROR-TEXT which is string into BLOB while sending email.
I am not able to test the flow as don't have SMTP server details as of now.
So just wanted to be sure as I am checking in the debugger mode the string say 'aa' is getting converted to 6161. So when the mail is sent what actually the intended recipient will see.
I know its a very basic question but since new can someone help |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 26, 2013 3:00 am Post subject: Re: Email Node email text dynamic creation |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
Abhinay185127 |
Posted: Wed Jun 26, 2013 3:39 am Post subject: |
|
|
Acolyte
Joined: 20 May 2013 Posts: 58
|
Thanks lancelotlinc for the links.
I'll go through them meanwhile can you please answer my query I have stated regarding blob format.
Is it possible that if instead of BLOB domain we cretae the last child of message with XMLNSC domain for sending the mail and choose BodyContentType as text\html. Will such a thing work.  |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 26, 2013 3:43 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Abhinay185127 wrote: |
Thanks lancelotlinc for the links.
I'll go through them meanwhile can you please answer my query I have stated regarding blob format.
Is it possible that if instead of BLOB domain we cretae the last child of message with XMLNSC domain for sending the mail and choose BodyContentType as text\html. Will such a thing work.  |
When you tried this method, what happened? Did it work? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Abhinay185127 |
Posted: Wed Jun 26, 2013 4:22 am Post subject: |
|
|
Acolyte
Joined: 20 May 2013 Posts: 58
|
As i mentioned i am not having the SMTP server port details as of now and would be getting in a couple of days so not sure.
In case of if i am using BLOB domain just wanted to be sure as I am checking in the debugger mode the string say 'aa' is getting converted to 6161. So when the mail is sent what actually the intended recipient will see. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 26, 2013 4:24 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Abhinay185127 wrote: |
As i mentioned i am not having the SMTP server port details as of now and would be getting in a couple of days so not sure. |
Are you not able to setup your own mail server for testing purposes?
http://smtp.socketlabs.com _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 26, 2013 5:34 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
Abhinay185127 wrote: |
As i mentioned i am not having the SMTP server port details as of now and would be getting in a couple of days so not sure. |
Are you not able to setup your own mail server for testing purposes?
http://smtp.socketlabs.com |
There are a number of free/open source email servers, including the ever popular sendmail.
I find hMailServer to be friendly. |
|
Back to top |
|
 |
|