Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 25th, 2004, 10:22 PM
Registered User
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML Email's Unicode Truncated When Using CDONTS


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


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;
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.

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

?a?s?u?A???` (this is the modified unicode, please advice, originally is ‹âsŒûÀ–¼‹`)

Content-Type: text/html;
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)

************End Of My Generated Email's Source*******************

Please advice what should i do to the code in order to send out the original unicode.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Truncated field when copying Tachyophan Access VBA 3 November 16th, 2006 08:23 AM
Long Name truncated with SendMail echovue Excel VBA 0 May 12th, 2005 03:05 PM
need to be truncated PatrickH SQL Server ASP 2 April 15th, 2004 10:48 AM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.