Hi,
I am currently developing a
VB program to send multi language html email by using CDONTS.
Hovewer, my unicode seems to be modified after i constructed the email.
The following is my code and generated email's source. Please advice...
******MY CODE***********
Set newmailobj = CreateObject("CDONTS.NewMail")
newmailobj.From = "ABC@abc.com"
newmailobj.To = "CDE@cde.com"
newmailobj.BodyFormat = 0
newmailobj.MailFormat = 0
newmailobj.SetLocaleIDs (932)
newmailobj.Subject = "Test Send Email"
strHTMLBody = strHTMLBody & "<HTML>"
strHTMLBody = strHTMLBody & "<HEAD>"
strHTMLBody = strHTMLBody & ""
strHTMLBody = strHTMLBody & "<META HTTP-EQUIV=""Content-Type"" CONTENT=""text/html; CHARSET=shift_jis"">"
strHTMLBody = strHTMLBody & "</HEAD>"
strHTMLBody = strHTMLBody & "<BODY>â¹Ã¢ÂsÅûÂÃâ¼â¹`"</BODY>" (My Unicode Is here)
strHTMLBody = strHTMLBody & "</HTML>"
newmailobj.Body = strHTMLBody
newmailobj.Send
Set newmailobj = Nothing
***********End of My Code***************
********* My Generetad Email's Source*********
Received: from mail pickup service by gentree2 with Microsoft SMTPSVC;
Sat, 24 Jul 2004 16:13:30 +0800
From: <abc@abc.com>
To: <cde@cde.com>
Subject: Test Send Email
Date: Sat, 24 Jul 2004 16:13:29 +0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0012_01C47199.28993240"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <LOHabXkwi8Be0z00000016@LOH>
X-OriginalArrivalTime: 24 Jul 2004 08:13:30.0031 (UTC) FILETIME=[1A94EBF0:01C47156]
This is a multi-part message in MIME format.
------=_NextPart_000_0012_01C47199.28993240
Content-Type: text/plain;
charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
?a?s?u?A???` (this is the modified unicode, please advice, originally is â¹Ã¢ÂsÅûÂÃâ¼â¹`)
------=_NextPart_000_0012_01C47199.28993240
Content-Type: text/html;
charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable
<HTML><HEAD><!-- <META HTTP-EQUIV=3D"Content-Type" =
content=3D"text/html;charset=3Diso-8859-1"> --><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
CHARSET=3Dshift_jis"></HEAD><BODY>?a?s?u?A???`</BODY></HTML> (this is the modified unicode, please advice)
------=_NextPart_000_0012_01C47199.28993240--
************End Of My Generated Email's Source*******************
Please advice what should i do to the code in order to send out the original unicode.
Thankssssss...
Regards,
Loh