Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

ASP + CDO send Chinese email issue

Question posted by: Chan Chi Man (Guest) on August 5th, 2008 04:25 AM
Hello all,
I am using ASP + CDO tp send mail (running on Win2000 server and
will not upgrade to use ASPX in 2 years time). I use ASP + CDO to send
email with Chinese To:, From:, Subject: and content. The content can
display correctly but the To: From: and Subject become "???" after
transfer. Is there any way to resolve this? Thanks. Below please find
the code to send email.

Dim iMsg
Set iMsg = server.CreateObject("CDO.Message")
Dim iConf
Set iConf = server.CreateObject("CDO.Configuration")

Dim Flds
Set Flds = iConf.Fields

With Flds

..Item("http://schemas.microsoft.com/cdo/configuration/smtperver") =
"mail.mycom.hk"

..Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =
25
.Update
End With
With iMsg
Set .Configuration = iConf
.To = "一*茪H <someone@mycom.com>"
.From = "另一*茪H <another@mycom.com>"
.Subject = "一件事"
.CreateMHTMLBody "http://www.yahoo.com.hk", 31
.Send
End With

set iMsg = nothing
set iConf = nothing
set Flds = nothing




-- Posted on news://freenews.netfront.net - Complaints to Join Bytes! --
 
Not the answer you were looking for? Post your question . . .
189,071 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors