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 » Reg : Email Node email text dynamic creation

Post new topic  Reply to topic
 Reg : Email Node email text dynamic creation « View previous topic :: View next topic » 
Author Message
Abhinay185127
PostPosted: Wed Jun 26, 2013 1:11 am    Post subject: Reg : Email Node email text dynamic creation Reply with quote

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
View user's profile Send private message
Abhinay185127
PostPosted: Wed Jun 26, 2013 2:41 am    Post subject: Email Node email text dynamic creation Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 26, 2013 3:00 am    Post subject: Re: Email Node email text dynamic creation Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Abhinay185127 wrote:
I know its a very basic question but since new can someone help


http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.samples.email.doc%2Fdoc%2Foverview.htm

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0

https://www-304.ibm.com/jct03001c/services/learning/us/pdfs/roadmaps/wmb_v8_dev.pdf
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Abhinay185127
PostPosted: Wed Jun 26, 2013 3:39 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 26, 2013 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Abhinay185127
PostPosted: Wed Jun 26, 2013 4:22 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 26, 2013 4:24 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Jun 26, 2013 5:34 am    Post subject: Reply with quote

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
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 » Reg : Email Node email text dynamic creation
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.