cyrillic and cdonts

M

mike bayliss

HI
below is my asp form that collects fields from a web page encoded in windows-1251. I have a pretty smooth brain and cannot figure out how to get this script to send readable emails to the moscow address in windows-1251. Can anyone show me what the script should look like

<

ToEmail="(e-mail address removed)
CCEmail="(e-mail address removed)
FromEmail=Request.Form("email_address"
Subject="Moscow Request in russian

Message = Message & "Company Name:" & " " & Request.Form("Company_Name") & vblf
Message = Message & "Contact Name:" & " " & Request.Form("Contact_Name") & vblf
Message = Message & "Telephone:" & " " & Request.Form("Telephone") & vblf
Message = Message & "E-Mail:" & " " & Request.Form("email_address") & vblf
Message = Message & "Address:" & " " & Request.Form("Address") & vbl
Message = Message & "Country:" & " " & Request.Form("country")

Set CDONTSMail = CreateObject("CDONTS.NewMail"
CDONTSMail.From = FromEmai
CDONTSMail.To = ToEmai
CDONTSMail.Cc = CCEmai
CDONTSMail.Subject = Subjec
CDONTSMail.Body = Messag
CDONTSMail.MailFormat =

CDONTSMail.Sen
set CDONTSMail=nothin
Response.Redirect("a web page"

%><html><head><title>Send</TITLE></head><body bgcolor="#FFFFFF"></body></html>
 
E

Egbert Nierop \(MVP for IIS\)

mike bayliss said:
HI,
below is my asp form that collects fields from a web page encoded in
windows-1251. I have a pretty smooth brain and cannot figure out how to get
this script to send readable emails to the moscow address in windows-1251.
Can anyone show me what the script should look like?


Note that the script in vbscript in my case, needs to be saved as unicode.
For windows 1251 it needs to be saved as 1251...

Set mail = CreateObject("CDO.Message")
Set mailConfig = CreateObject("CDO.Configuration")
with mailConfig.fields
.item("http://schemas.microsoft.com/cdo/configuration/sendusing").value =2
.item("http://schemas.microsoft.com/cdo/configuration/smtpserver").value =
"192.168.0.7"
.update
End With

Set mail.Configuration = mailConfig
Mail.To = "(e-mail address removed)"
Mail.From = "(e-mail address removed)"
mail.Subject ="ТеÑÑ‚"
mail.textbody = "да ва ла ла ла"
mail.bodypart.CharSet = "utf-8"

Mail.Send

compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

<%

ToEmail="(e-mail address removed)"
CCEmail="(e-mail address removed)"
FromEmail=Request.Form("email_address")
Subject="Moscow Request in russian"

Message = Message & "Company Name:" & " " & Request.Form("Company_Name") & vblf
Message = Message & "Contact Name:" & " " & Request.Form("Contact_Name") & vblf
Message = Message & "Telephone:" & " " & Request.Form("Telephone") & vblf
Message = Message & "E-Mail:" & " " & Request.Form("email_address") & vblf
Message = Message & "Address:" & " " & Request.Form("Address") & vblf
Message = Message & "Country:" & " " & Request.Form("country")

Set CDONTSMail = CreateObject("CDONTS.NewMail")
CDONTSMail.From = FromEmail
CDONTSMail.To = ToEmail
CDONTSMail.Cc = CCEmail
CDONTSMail.Subject = Subject
CDONTSMail.Body = Message
CDONTSMail.MailFormat = 0

CDONTSMail.Send
set CDONTSMail=nothing
Response.Redirect("a web page")

%><html><head><title>Send</TITLE></head><body
bgcolor="#FFFFFF"></body></html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top