Author |
Topic |
|
canis
Starting Member
38 Posts |
Posted - 23 September 2008 : 19:09:16
|
When we send mails (pop_mail.asp) we get trouble with our national letters. We use charset=iso-8859-1 while in mail charset=ascii-us. The charset for the mail popup window is also ISO-8859-1. Normal forum posting (Post New Topic) is ok :-). Any idea?< |
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 23 September 2008 : 20:46:19
|
I'd like to help with the original question, but it appears you have bigger problems than just the code question. Airing those bigger problems like you did makes me not want to help at all. It's a huge turn-off.
Rui corrected your signature. It seems to have been set to automatically apply once while your post was applied. I had only heard about Image hacking and doing this to signatures, but I had not see the signature he hacked myself. Please accept my apology.
Sincerely,
Etymon < |
Edited by - Etymon on 24 September 2008 10:52:10 |
|
|
bobby131313
Senior Member
USA
1163 Posts |
|
canis
Starting Member
38 Posts |
Posted - 24 September 2008 : 08:25:23
|
I’m not quite sure I understood your answer Etymon. I solved the problem easily in the case with posting topics. No problem with the letters there when we have the right codepage. Then the browser the user is using “know” which codepage to use. And it is working, that is easy to verify and to test. However, by sending emails from the forum and the User profile by “E-mail User: Click to send an E-Mail “ the national letters in the mail becomes wrong. In the mail it self the codepage info seem to be wrong. In the mail header I find: charset=ascii-us, and then my national letters are shown wrong.
I suppose it is easy to correct, but... < |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 24 September 2008 : 09:38:14
|
quote: Originally posted by canis
I’m not quite sure I understood your answer Etymon. I solved the problem easily in the case with posting topics. No problem with the letters there when we have the right codepage. Then the browser the user is using “know” which codepage to use. And it is working, that is easy to verify and to test. However, by sending emails from the forum and the User profile by “E-mail User: Click to send an E-Mail “ the national letters in the mail becomes wrong. In the mail it self the codepage info seem to be wrong. In the mail header I find: charset=ascii-us, and then my national letters are shown wrong.
I suppose it is easy to correct, but...
Etymon was talking about your signature, which indicated your account was hacked by Image. I deleted it, but you should change your password ASAP.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 24 September 2008 : 10:51:40
|
I updated my original reply.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 24 September 2008 : 13:24:12
|
it will probably depend what email component you are using, so perhaps you could start by telling us that< |
|
|
canis
Starting Member
38 Posts |
Posted - 24 September 2008 : 16:00:21
|
I supposed I have "lost" something, however I have changed my password.
I am admin in the forums. My server is a NT server, I run Snitz forum 3.4.06. I have selected ASPmail.
At home I'm using Microsoft Office Outlook 2003, norwegian edition.< |
|
|
canis
Starting Member
38 Posts |
Posted - 24 September 2008 : 16:17:25
|
Etymon: Your apologies are accepted Have a nice day!< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 24 September 2008 : 16:29:47
|
Find the section in inc_mail.asp that deals with ASPmail and add the line in red:
case "aspmail"
Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
objNewMail.Charset = 2
objNewMail.FromName = strFromName
objNewMail.FromAddress = strSender
'objNewMail.AddReplyTo = strSender
objNewMail.RemoteHost = strMailServer
objNewMail.AddRecipient strRecipientsName, strRecipients
objNewMail.Subject = strSubject
objNewMail.BodyText = strMessage
on error resume next '## Ignore Errors
SendOk = objNewMail.SendMail
See if that helps.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
canis
Starting Member
38 Posts |
Posted - 24 September 2008 : 16:48:17
|
Yes ruirib, that helped a lot!
I was sure it had something to do with charset in some way, but why just Charset=2 ?
Thanks a lot ruirib.
< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 24 September 2008 : 16:59:57
|
CharSet The character set. By default the char set is US Ascii Valid values:
1 = US Ascii 2 = ISO-8859-1
this is for ASPmail
alternatively you can set a customcharset CustomCharSet If you wish to use a character set besides the included types you can set CustomCharSet to a character set string.
Example: Mailer.CustomCharSet = "ISO-2022" or Mailer.CustomCharSet = "utf-8"
etc< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
canis
Starting Member
38 Posts |
Posted - 24 September 2008 : 18:14:10
|
Thanks a lot both of you.
Then I also understand why the value 2 works. ISO-8859-1 works just perfect for Norway. So objNewMail.Charset = 2 is clearly right for me to use. The mails now became just perfect. I’m very pleased!
Thanks a lot. < |
|
|
|
Topic |
|