473,466 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sending emails with CDONTs in Russian

I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Mar 17 '06 #1
4 5024

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.


Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.


Mar 17 '06 #2

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.


Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html> It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an appropriate
tutorial?

Thanking you in anticipation.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Mar 17 '06 #3

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11**************@sp6iad.superfeed.net...

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11*************@sp6iad.superfeed.net...
I'm sending Russian text in an email generated from the website which
displays in the email as ??????????

The website is set to codepage 65001 and the charset to utf-8.

Please advise.
Roger your question is a little abigous.

The web site is displaying the email or sending the email or both?

The email looks garbled when you view it in an email client?

What are you using to generate the email CDOSYS?

The session codepage only affects how response.write encodes.
Charset is simply a response header.

Neither impacts the creation of an email.

Anthony.

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html> It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an

appropriate tutorial?

Thanking you in anticipation.


With CDOSYS this can acheive what you are after:-

oMsg.HTMLBody = "<html><body>HTML content with £ in it</body></html>"
oMsg.HTMLBodyPart.CharSet = "utf-8"

this should give you something to go on:-

http://msdn.microsoft.com/library/de..._cdosys_vb.asp

Anthony
Mar 17 '06 #4
more on cdosys
http://www.powerasp.com/content/new/...ail_cdosys.asp

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:Ob*************@TK2MSFTNGP10.phx.gbl...

"Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
news:11**************@sp6iad.superfeed.net...

"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
>
> "Roger Withnell" <ro*********@THISupperbridge.co.uk> wrote in message
> news:11*************@sp6iad.superfeed.net...
>> I'm sending Russian text in an email generated from the website which
>> displays in the email as ??????????
>>
>> The website is set to codepage 65001 and the charset to utf-8.
>>
>> Please advise.
>>
>>
>
> Roger your question is a little abigous.
>
> The web site is displaying the email or sending the email or both?
>
> The email looks garbled when you view it in an email client?
>
> What are you using to generate the email CDOSYS?
>
> The session codepage only affects how response.write encodes.
> Charset is simply a response header.
>
> Neither impacts the creation of an email.
>
> Anthony.
>

ASP page sends an email using CDONTS:

Set objMail = Server.Createobject("CDONTS.NewMail")
objMail.From = "Email"
objMail.To = vEmail
objMail.Subject = "Subject"
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Set objMail = Nothing

htmlText is the page in html as a complete html page <html> to </html>
It
includes
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
in the header.

This works fine (and has done for ages in other applications) in English.
But the Russian characters appear as ??????????

Perhaps I should be using CDOSYS? If so, can you point me to an

appropriate
tutorial?

Thanking you in anticipation.


With CDOSYS this can acheive what you are after:-

oMsg.HTMLBody = "<html><body>HTML content with £ in it</body></html>"
oMsg.HTMLBodyPart.CharSet = "utf-8"

this should give you something to go on:-

http://msdn.microsoft.com/library/de..._cdosys_vb.asp

Anthony

Mar 20 '06 #5

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

Similar topics

10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
1
by: mark | last post by:
I need to send order confirmation emails through my asp.net storefront. With my Asp 3.0 sites I use cdonts with no issues. I've researched the system.web.mail asp.net way and haven't got it to...
1
by: Daniel | last post by:
Before writing a code to send a mail using asp.net, what steps have to be taken Like do some configuration ? coz i'm new to .Net your help will be appreciated. Daniel.
3
by: sagar | last post by:
i tried to send a email through asp using codes given on the book. but there is an error saying: ActiveX component can't create object: 'CDONTS.NewMail' what's that error for.,,and how can i...
2
by: Joey | last post by:
I am currently developing a C# asp.net application where users are required to register. The application then generates a simple, plain text email and sends it to the new user. I have been...
3
by: Hugo Lefebvre | last post by:
Is there a maximum number of emails CDONTS can handle in an asp script? I have different questions about this. Question1: example1: set objSendMail = createobject("CDONTS.NewMail") ...... ...
7
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.