Author |
Topic |
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 15 April 2002 : 00:14:46
|
Hello again,
I have this problem (??) from the beginning of using Snitz Forums and I tried to figure out a solution but i wasn't able until now. So here is the problem and my request for any kind person knows a solution. We run a translated Snitz Forums (40b3) installation using Lang1032.asp (translated into Greek) and CDONTS method for sending e-mail messages.
The problem is that Outlook Express (this heavily used e-mail client) can't recognize the codepage of the messages (or the messages are not send in the right codepage - it's iso-8859-1 as I can see in the message source) and all Greek words seem scrambled unless I choose the right encoding (Greek Windows) from Menu>View.
I know the trick and apply it each time I have a message send from the Forums but the great majority of the Forums' users don't and they think that the scrambled messages they get are caused by a code bug and they think they are unreadable.
So, what's the right way to make CDONTS (and the Forums' code) to send e-mail messages in a form that Outlook Express understands that the message contains Greek text (or any language other than english) and to apply the right encoding for it?
I have the same problem with the forms I create for webpages (using ASP and CDONTS) not related though with Snitz Forums but I think that the question is somehow general too.
Thanks in advance
< |
|
Deleted
deleted
4116 Posts |
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 15 April 2002 : 08:11:10
|
bozden you are great!
Thank you for the detailed information, especially http://www.cdolive.com/cdo.htm is extremely useful and user friendly.
I'm implementing right now the fix you are suggesting and will post the results afterwards.
I'm sending you the language file.
< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 15 April 2002 : 19:01:17
|
|
|
|
Deleted
deleted
4116 Posts |
Posted - 16 April 2002 : 07:26:28
|
The above post was very helpful. We need #2 or #4 to work, and the problem is
Content-Transfer-Encoding: 7bit
I could not find a property/method to set this in cdo 1.2.1 newmail object though.
I'll search some more...
Think Pink ==> Start Internationalization Here< |
|
|
Deleted
deleted
4116 Posts |
Posted - 16 April 2002 : 07:45:13
|
That encoding (ith all = signs) is MIME.
Probably the only way is to use HTML mail and set the charset (ISO) in the header of the mail.
Think Pink ==> Start Internationalization Here< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 16 April 2002 : 09:26:24
|
I've already tried this with a mail sending asp page and it doesn't work... "Content-Transfer-Encoding: 7bit" issue persists!
Here are the settings of the asp page:
HTML = HTML & "<html>" HTML = HTML & "<head>" HTML = HTML & "<meta http-equiv=""Content-Type"" content=""text/html; charset=iso-8859-7"">" etc......
..... myMail.BodyFormat=0 myMail.MailFormat=0 myMail.Body=HTML myMail.SetLocaleIDs (28597) .........
There should be another way around. I don't believe that MS hasn't anticipated the problem with foreign codepages when developing the CDO methods. (But this may be the situation after all, i don't know....)
< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 16 April 2002 : 09:52:04
|
Another question I have:
Do you have the same problem with Turkish characters in mails sent through the forum at http://www.istanbulmuzesi.org/forum ?
< |
|
|
Deleted
deleted
4116 Posts |
Posted - 16 April 2002 : 13:48:06
|
quote:
Another question I have:
Do you have the same problem with Turkish characters in mails sent through the forum at http://www.istanbulmuzesi.org/forum ?
I don't use CDONTS there. I tried some other components and they have extra setting for this purpose which do not cause any problem until now.
Think Pink ==> Start Internationalization Here< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 17 April 2002 : 20:49:06
|
Well, I surrender!! I can't find a proper way to configure CDONTS properly and I don't think there is one either. I "played" with every and each one of the rellevant properties of the NewMail Object (and several combinations of them) but haven't found a proper method. The "Content-Transfer-Encoding: 7bit" issue persists. I think that MS was very much english oriented on this...
And anyway they seem to have realised that and introduced CDOSYS ! Yes, these Data Objects seem much more sofisticated and with a lot more of properties than CDO 1.21 or CDONTS. As I have already found CDOSYS supports (!!) "quoted-printable" content-transfer-encoding.
I used to believe that CDOSYS is only included with Windows XP but I realised that it is also included with Win2000 server too (such as the one hosting our Site - as CDO for Windows 2000)!!
Here is a link from MSDN Library providing a messaging example using this method: http://msdn.microsoft.com/library/en-us/cdosys/html/_cdosys_examples_constructing_a_bodypart_hierarchy.asp
As you can see the method seems very detailed and apparently powerful but may be alot more difficult to configure than CDONTS. I'm searching to find some friendly tutorials to understand how it works as I'm not the "master of programming" and I always try to find good advices from more capable people.
So If someone has to provide anything to help average Web-masters like me please do.
RichardKinser has provided a link to updated files for additional email components for snitz forums(including CDOSYS) on: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25984
(hope we can find a way to the "problem" soon)
< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 17 April 2002 : 21:43:59
|
Another thing i found out (not very delayed thankfuly) is that you may not use the files with the updated e-mail components as is because they are not translated yet (don't contain the Language strings required for international forums installation - 4.0b3+)
Edited by - Esoterica.gr on 17 April 2002 21:52:21< |
|
|
Deleted
deleted
4116 Posts |
Posted - 18 April 2002 : 07:01:04
|
quote:
Another thing i found out (not very delayed thankfuly) is that you may not use the files with the updated e-mail components as is because they are not translated yet (don't contain the Language strings required for international forums installation - 4.0b3+)
Edited by - Esoterica.gr on 17 April 2002 21:52:21
Sorry, but I could not understand this. What is not translated? If you need CDOSYS support, I can give it here (it is in v3.4).
Think Pink ==> Start Internationalization Here< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 18 April 2002 : 09:02:15
|
Ok, sorry bozden, I meant that the NewMailComponents files that RichardKinser provided, which include support for 5 more (I think) mail components than the official 40b3 distribution don't contain the references to the Lang****.asp files through fLang function. An example:
original 40b3 code (inc_mail.asp):
Err_Msg = Err_Msg & "<li>" & fLang(strLangInc_Mail00010) & " " & objNewMail.Response & "</li>"
new mail components' file:
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
Maybe I've just missed an internationalized such distribution of new mail components files?? If that's the case I'm sorry
< |
|
|
Deleted
deleted
4116 Posts |
Posted - 18 April 2002 : 11:52:54
|
I see. That file is from v3.4 which is not internationalized. v4b04 will use that same file. Btw: where did you find that file?
Just replace the strings with fLang() calls, it will work.
Think Pink ==> Start Internationalization Here< |
|
|
Esoterica.gr
Starting Member
Greece
43 Posts |
Posted - 18 April 2002 : 12:46:48
|
I provided the link on a previous post, same topic
quote: RichardKinser has provided a link to updated files for additional email components for snitz forums(including CDOSYS) on: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25984
I'll replace the strings and I'll send you the files in case someone else wants them
< |
|
|
Topic |
|