Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDOSYS subject not displaying the correct characters

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
GB
I have the following code creating emails based on information submitted through a form. The bodytext of the email (in Russian) is showing up fine in the delivered email, however, the subject is showing all the Russian cyrillic characters as question marks.

I have set the charset of the bodytext to utf-8 but this is not affecting the subject. Does anyone have any ideas what I can do to get the subject displaying correctly?

kind regards

Tony
Code:
...
Dim objCustomerMail

'Send confirmation e-mail to customer
Set objCustomerMail = Server.CreateObject("CDO.Message")

objCustomerMail.BodyPart.Charset = "utf-8"
objCustomerMail.Subject = "Spirax Sarco ?????? - ?????????? ?? ??? ??????"
objCustomerMail.From = strAssociateEmail
objCustomerMail.To = strCustomerEmail
objCustomerMail.TextBody = strBodyText & vbcrlf & "?? ? ????????? ????????? ? ??????????? ?????? ????? ? ?? ???????? ?????????? ? ??? ?? ??????? ????????"
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 1
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "localhost"
objCustomerMail.Configuration.Fields.Item("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25 
objCustomerMail.Configuration.Fields.Update
objCustomerMail.Send

Set objCustomerMail = Nothing

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top