Email messages culture

This is a place to discuss how to adapt mojoPortal to the needs of different cultures. Before asking questions here please first review the localization documentation.

This thread is closed to new posts. You must sign in to post in the forums.
3/6/2011 6:12:27 AM
Gravatar
Total Posts 125

Email messages culture

Hello.

It seems that i missed something when using the Greek culture. The email notifications. Where are they ? And how can i enable them in Greek ?

Also it seems that there is some kind of encoding problem in emails SUBJECT.

 

Thanks

3/6/2011 12:43:58 PM
Gravatar
Total Posts 18439

Re: Email messages culture

try adding this to user.config:

<add key="SmtpPreferredEncoding" value="utf-8"/>

there are files under /Data/MessageTemplates that can be translated and the email templates come from there.

Hope it helps,

Joe

3/6/2011 1:03:10 PM
Gravatar
Total Posts 125

Re: Email messages culture

Joe,

There are no el-GR files in Data/MessageTemplates/

How can i add them and translate them ?

Can you include some defaults in the next version so i can translate them ?

 

Thanks

3/6/2011 5:06:55 PM
Gravatar
Total Posts 125

Re: Email messages culture

Joe,

Here is what i found. The utf-8 is there no matter what. I tried changing it to Greek (iso-8859-7) but the emails are still utf-8.

The Subject comes truncated for some Greek letters (the accented ones).

See the header and you will see something strange in the Subject. There are TWO utf-8 ?


Subject: =?utf-8?B?zpXPgM6xzrPOs861zrvOvM6xz4TOr861z4IgJiDOn86RzpXO?=
=?utf-8?B?lQ==?=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

 

So i would like to try the ISO greek encoding if you tell me how to change it.

 

Thanks

3/7/2011 12:19:58 PM
Gravatar
Total Posts 18439

Re: Email messages culture

The problem might be because the template files are ascii encoded and this may cause a problem when the email is set to utf-8 encoding.

To translate to Greek you should copy all of the en-US- files and rename them el-GR then translate them and if needed change the file encoding to utf-8 using your text editor.

utf-8 should work ok for Greek

You can start with translating just the files for email.

Any files that you translate you should zip them and email them to me so I can include them.

Best,

Joe

3/7/2011 3:26:51 PM
Gravatar
Total Posts 125

Re: Email messages culture

Joe,

 

I will do the translation of the templates.

But the problem is not in them. First i can't change the utf-8 in email encoding no matter what. Second the utf-8 encoding is only in the SUBJECT, and please see my header post above.

 

I would like to try also Greek (iso-8857-9) to see if the problem is gone, but i can't.

 

Thanks

3/8/2011 8:00:54 AM
Gravatar
Total Posts 125

Re: Email messages culture

The lost password-recover email is for some reason ignoring the utf-8 and uses us-ascii. While the other email notifications are using utf-8.

 

X-Mozilla-Keys:                                                                                

Date: 8 Mar 2011 13:54:44 +0000
Subject: =?utf-8?B?zp8gzpXPgM6xzrPOs861zrvOvM6xz4TOr861z4IgJiDOn86R?=
=?utf-8?B?zpXOlSDOus+JzrTOuc66z4zPgiDPgM+Bz4zPg86yzrHPg863z4Iu?=
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-ID: <c46dad41de0a491b959c9ce4f2958a73@com>
X-SmarterMail-TotalSpamWeight: 0 (Authenticated)
X-Antivirus: avast! (VPS 110308-0, 08/03/2011), Inbound message
X-Antivirus-Status: Clean

A request was just submitted to send your ????????????? & ???? pa=
ssword for the User r=0D=0AYour password is

 

 

 

3/8/2011 12:29:07 PM
Gravatar
Total Posts 18439

Re: Email messages culture

Hi Costa,

I made a change today that should fix the encoding for the password recovery email. The fix is in the source code repository now if you are working from source code, and it will fixed in the next release.

Best,

Joe

3/28/2011 7:55:45 AM
Gravatar
Total Posts 125

Re: Email messages culture

Joe,

The SUBJECT encoding is WRONG. I have tried with Thunderbird, Outlook Express and SmarterMail webmail.

See the header:

Subject: =?utf-8?B?W86Vz4DOsc6zzrPOtc67zrzOsc+Ezq/Otc+CICYgzp/Okc6V?=
=?utf-8?B?zpUgLSBGb3J1bSDOs865zrEgz4TOsSDPg8+Fzr3PhM6/zr3Ouc+Dz4TO?=
=?utf-8?B?uc66zqwgzrzOrc67zrddIFJlOiDOlc66zrTOt867z47Pg861zrnPgiDO?=
=?utf-8?B?tc69zrTOuc6xz4bOrc+Bzr/Ovc+Ezr/PgiDOsc+Azr8gz4bPjM+BzrzO?=
=?utf-8?B?sSDOtc+AzrnOus6/zrnOvc+Jzr3Or86xz4I=?=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
X-SmarterMail-TotalSpamWeight: 0 (Authenticated)

 

It contains MULTIPLE encodings (utf-8 multiple time) and that apparently scrambles the topic decoding.

Thanks

 

Costas

 

 

3/30/2011 10:58:10 AM
Gravatar
Total Posts 18439

Re: Email messages culture

In mojoPortal 2.3.6.4 it is possible to set any encoding for email and it will try to use the encoding if it exists, but it may throw an error if something invalid is used. For Greek you could try specifying ibm869 or windows-1253. A full list of encoding names is at the bottom of this page. I'm not in a good position to test various encodings and languages with email so your mileage may vary, I can't promise it will work.

Best,

Joe

3/30/2011 11:14:04 AM
Gravatar
Total Posts 125

Re: Email messages culture

Thanks Joe, i will test things and let you know.

Actually the Greek encoding is "iso-8859-7" or "Windows-1253", if utf-8 fails. Strange is that utf-8 fails ONLY in the subject !!!

 

 

You must sign in to post in the forums. This thread is closed to new posts.