This mini-tutorial is for people with the following needs:
- You need to send email containing multilingual, Unicoded text;
- The email is to be plain text rather than HTML;
- You use the CDONTS NewMail Object.
This mini-tutorial is for people with the following needs:
This mini-tutorial is for people with the following needs:
So, for example, you have an Access 2000 database storing product descriptions in multiple languages (say, Japanese, Korean, and Danish). Since Access 2000 is naturally Unicode-enabled, an ASP script can extract those descriptions and pass the information to the user via email upon request.
All that is required is to specify two additional parameters for the NewMail object -- one to set MIME as the mail format to use, the other to set Unicode as the locale. So lets say you've named your New Mail object objCDO, you would then add:
objCDO.MailFormat = 0
objCDO.SetLocaleIDs(65001)
65001, of course, is the code page for Unicode character set.
That's it!
Comments
Using Vietnamese in CDOMail
I have read the comment for "Sending plain text email in Unicode". I tried with the codes in my ASP page. It seems that the header of message appeared correctly but the email was changed to another code like below:
--------
Received: from mail pickup service by icard-bk.agroviet.gov.vn with Microsoft SMTPSVC;
Thu, 26 Aug 2004 08:58:12 +0700
From: <Email : hlk>
To: <sonnh@agroviet.gov.vn>
Subject: Gui thong tin phan hoi cho trang web Soc Trang
Date: Thu, 26 Aug 2004 08:58:12 +0700
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ICARD-BKGmvSVMum03y00000258@icard-bk.agroviet.gov.vn>
X-OriginalArrivalTime: 26 Aug 2004 01:58:12.0953 (UTC) FILETIME=[24FD3C90:01C48B10]
------
Vietnamese text in the body as: Nguyễn Hồng Sơn
--------
I don't know how is it.
Please help me.
Nguyen Hong Son
Vietnam
You must me logged in to write a comment.