Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 Codepage problem sending email?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

canis
Starting Member

38 Posts

Posted - 23 September 2008 :  19:09:16  Show Profile
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  Show Profile  Visit Etymon's Homepage
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
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 23 September 2008 :  22:21:37  Show Profile  Visit bobby131313's Homepage
Etymon, I'm almost sure that wasn't the OP's fault.<

Switch the order of your title tags
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 24 September 2008 :  08:25:23  Show Profile
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...
<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2008 :  09:38:14  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 24 September 2008 :  10:51:40  Show Profile  Visit Etymon's Homepage
I updated my original reply.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 September 2008 :  13:24:12  Show Profile  Visit HuwR's Homepage
it will probably depend what email component you are using, so perhaps you could start by telling us that<
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 24 September 2008 :  16:00:21  Show Profile
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.<
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 24 September 2008 :  16:17:25  Show Profile
Etymon: Your apologies are accepted
Have a nice day!<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2008 :  16:29:47  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 24 September 2008 :  16:48:17  Show Profile
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.

<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 September 2008 :  16:59:57  Show Profile  Visit HuwR's Homepage
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<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2008 :  17:00:06  Show Profile  Send ruirib a Yahoo! Message
Seems that's the value that ASPmail uses to know that ISO-8859-1 should be used for the email message.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

canis
Starting Member

38 Posts

Posted - 24 September 2008 :  18:14:10  Show Profile
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.
<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07