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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 International encoding in ASPmail
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SagaService
Junior Member

108 Posts

Posted - 27 October 2002 :  20:34:17  Show Profile
Hei Snitz forum.

I wanted to let my users get mail from our forum in Norwegian language with norwegian characters. I inserted this string in the code in inc_mail.asp just above the "error line" (objNewMail.CharSet = 2). Parameter 2 means that the server uses ISO-8859-1 (parameter 1 means us_Ascii). This is a copy of the ASPmail code part in my inc_mail.asp:

select case lcase(strMailMode)
case "aspmail"
Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
objNewMail.FromName = strFromName
objNewMail.FromAddress = strSender
'objNewMail.AddReplyTo = strSender
objNewMail.RemoteHost = strMailServer
objNewMail.AddRecipient strRecipientsName, strRecipients
objNewMail.Subject = strSubject
objNewMail.BodyText = strMessage
objNewMail.CharSet = 2
on error resume next '## Ignore Errors
SendOk = objNewMail.SendMail
If not(SendOk) <> 0 Then
Err_Msg = Err_Msg & "<li>" & fLang(strLangInc_Mail00010) & " " & objNewMail.Response & "</li>"
End if

Tested and works just perfect.

Per Lund (http://www.vti-fotball.no/forum) <

Edited by - SagaService on 28 October 2002 02:10:18

Deleted
deleted

4116 Posts

Posted - 28 October 2002 :  09:39:38  Show Profile
Thank you for sharing this info.

Additional info on e-mail components can be found here (not complete yet):
Ref: Mail Component Encoding Support
<

Stop the WAR!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07