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 <so*****@mycom.com>"
.From = "¥t¤@*Ó¤H <an*****@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 ne**@netfront.net --