473,513 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cyrillic and cdonts

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="ar******@moscow.ru
CCEmail="me@theoffice.co.uk
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>
Jul 19 '05 #1
1 3365
"mike bayliss" <sa******@hotmail.com> wrote in message
news:87**********************************@microsof t.com...
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 = "ar******@moscow.ru"
Mail.From = "me@theoffice.co.uk"
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="ar******@moscow.ru"
CCEmail="me@theoffice.co.uk"
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>

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3940
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server...
35
6282
by: Philipp Lenssen | last post by:
Does anybody have experience displaying Cyrillic in common browsers with common settings? I found the following page researching the topic, however I cannot display all characters in the table...
16
3148
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
3
2930
by: Beast | last post by:
I am having a hard time inserting cyrillic data into an access db using asp. Does someone know how to encode the data so jibberish does not I have <meta http-equiv="Content-Type"...
10
8012
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
1
2582
by: timdavis919 | last post by:
I'm trying to build some Russian web pages using Perl and MySQL. Toward that end, I have created a simple test case, which does not seem to work. Any help would be appreciated. I can...
0
1390
by: sorosh | last post by:
When I send e-mail created using ASP and CDO (not CDONTS) containing serbian cyrillic letters all I get in Outlook is ????????????. Can anyone help me, please?
7
2869
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.