Author |
Message
|
pvsp |
Posted: Mon Aug 29, 2011 5:12 am Post subject: EmailOutput - wmb 7 |
|
|
Apprentice
Joined: 17 Feb 2008 Posts: 36 Location: Warsaw, PL
|
Hi,
I've read about Email Output node (http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac66340_.htm?resultof=%22%65%6d%61%69%6c%22%20%22%6f%75%74%70%75%74%22%20) and I don't see the way to have possibility to send email with polish characters using Email Output node. Is it possible to set up some local enviroments or sth else ? At this time, the only way I can see is write custom java compute node where I can use java mail api. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 29, 2011 5:18 am Post subject: Re: EmailOutput - wmb 7 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pvsp wrote: |
I don't see the way to have possibility to send email with polish characters using Email Output node. |
Why not? I don't see anything in the description which would preclude this?
pvsp wrote: |
Is it possible to set up some local enviroments or sth else ? |
What??  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 29, 2011 5:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Of course, if either your receipient or your mail server don't support Polish then yes, you're going to hit problems but I would imagine you're going to hit those problems in the Java Mail API under those circumstances.... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Aug 29, 2011 5:38 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
pvsp |
Posted: Mon Aug 29, 2011 5:42 am Post subject: |
|
|
Apprentice
Joined: 17 Feb 2008 Posts: 36 Location: Warsaw, PL
|
I created very simple message flow.
First, I have Compute Node where I set subject and mesage body like below:
SET OutputRoot.EmailOutputHeader.Subject = 'ĄŻĆ';
SET OutputLocalEnvironment.Destination.Email.BodyContentType = 'text/html; charset=ISO-8859-2';
SET OutputRoot.BLOB.BLOB = CAST('This is the new text: ążćź' AS BLOB CCSID 1208);
and I sent this using Email Output. After thatr, I received mail where
subject is '=like '???' and message body is like This is the new text: ???? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 29, 2011 5:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why have you set the BodyContentType to 8859, then coded the content as 1208?
And does the mail server support Polish characters? Does it require any specific header information to do so? What is whatever you're receiving the email with think of Polish characters? Is the email sent correctly but rendered improperly on receipt?
Does it work if you send via Java? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 29, 2011 5:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
pvsp wrote: |
I created very simple message flow.
First, I have Compute Node where I set subject and mesage body like below:
SET OutputRoot.EmailOutputHeader.Subject = 'ĄŻĆ';
SET OutputLocalEnvironment.Destination.Email.BodyContentType = 'text/html; charset=ISO-8859-2';
SET OutputRoot.BLOB.BLOB = CAST('This is the new text: ążćź' AS BLOB CCSID 1208);
and I sent this using Email Output. After thatr, I received mail where
subject is '=like '???' and message body is like This is the new text: ???? |
What do you expect?
You set the body content type charset to ISO-8859-2 and you set the content to UTF-8 . Quite different entirely from setting the content type charset to UTF-8 and setting the content to UTF-8 .
At the same time you are setting the subject to 'ĄŻĆ'. Do you know how to indicate to the mailing program what the ccsid of the subject is?
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Aug 29, 2011 7:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
pvsp |
Posted: Tue Aug 30, 2011 1:28 am Post subject: |
|
|
Apprentice
Joined: 17 Feb 2008 Posts: 36 Location: Warsaw, PL
|
thx, I did it but I'm not sure it is the best solution, but it works good.
I 've set my email subject like below:
SET OutputRoot.EmailOutputHeader.Subject = 'Subject: Building fa=?ISO-8859-2?Q?=B1ade?='; |
|
Back to top |
|
 |
|