Author |
Message
|
gisly |
Posted: Wed Oct 31, 2012 1:44 am Post subject: Sending EMail with EmailNode: header ccsid |
|
|
Apprentice
Joined: 10 May 2012 Posts: 29
|
Hi!
I have got a problem sending email using the EmailOutputNode. The topic and body of the message are both supposed to contain Russian characters so I set UTF-8 ccsid as follows (all the references to inputRef etc are correct):
Code: |
SET OutputRoot.EmailOutputHeader.To=inputRef.Email;
SET OutputRoot.EmailOutputHeader.Subject=inputRef.Subject;
SET OutputRoot.EmailOutputHeader.From=fromEmail;
SET OutputRoot.BLOB.BLOB = CAST(inputRef.MessageBody AS BLOB CCSID 1208);
SET OutputLocalEnvironment.Destination.Email.BodyContentType = 'text/html; charset=utf-8' |
When I use a public Russian SMTP-server, the message and the topic are both displayed correctly, but when I use a Lotus Sever, the message is displayed correctly, but the topic is displayed in a wrong way: =?UTF8?B?0KDQtdGI0LXQvdC40LUg0L/QviDQt9Cw0Y/QstC60LUg4oSW?= =?UTF8?B?IFRFU1RFVFNTLiDQntC00L7QsdGA0LXQvdC40LU=?=
(by "displayed" I mean displayed in standard viewers such as Outlook).
Is it possible to somehow tell the server it should parse the message topic as UTF-8, too? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 31, 2012 5:10 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I would take an SMTP traffic trace of the message that leaves the Broker server.
If that actually contains the correct data and the correct MIME structure and character identifiers, then the issue is with how the Lotus Server is interpreting it or in how the client that is reading the message is displaying it. First thing is to confirm that your Notes server and Notes clients support UTF-8 subject lines. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Oct 31, 2012 6:41 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
First thing is to confirm that your Notes server and Notes clients support UTF-8 subject lines. |
Notes does support Russian Characters (as I know to my cost when trying to write a message using a keyboard that does not show cryllic).
This makes me wonder if the actual notes server you are talking to has been configured to allow UTF-8.
As has been suggested see the actual bitstream that is being sent to notes. Then you can decide where the problem lies. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
gisly |
Posted: Thu Nov 22, 2012 11:59 pm Post subject: |
|
|
Apprentice
Joined: 10 May 2012 Posts: 29
|
Thanks for your replies
In fact, the problem is now as follows: the email sent is displayed correctly in gmail client etc., but the subject line is garbled in the LotusNotes client. It looks as if the LotusNotes client could not parse the actual subject line:
=?UTF8?Q?Application_=E2=84=96_TESTIROVANE._Approval?=
Perhaps you may know where the problem lies (something concerning LotusNotes configuration) |
|
Back to top |
|
 |
gisly |
Posted: Mon Dec 03, 2012 5:21 am Post subject: |
|
|
Apprentice
Joined: 10 May 2012 Posts: 29
|
Just in case someone else runs accross the same problem with message headers:
we didn't manage to somehow changed Lotus Configuration, so we ended up writing a Java class handling all this email stuff, specifying utf-8 for both header and message, and it works now, at least with Lotus and free smtp-servers/web-clients |
|
Back to top |
|
 |
|