Article View: borland.public.cppbuilder.internet.socket
Article #40BCB 2009: Indy HTML-Mail
From: Matthias Schuppe
Date: Mon, 15 Dec 2008 11:50
Date: Mon, 15 Dec 2008 11:50
36 lines
2192 bytes
2192 bytes
Hi all,
this is my code:
IdSMTP = new TIdSMTP(Application);
IdMessage = new TIdMessage(Application);
IdMessage->ContentType = "multipart/related; type=\"text/html\"";
IdText = new TIdText(IdMessage->MessageParts, NULL);
IdText->Body->Add("<HTML>");
IdText->Body->Add("HTML-Text");
IdText->Body->Add("</HTML>");
IdText->ContentType = "text/html";
It works well with BCB 2007, but after migration to BCB 2009 there
is a problem with special german characters (Umlaut).
I tried this:
IdMessage->OnInitializeISO = IdMessageInitializeISO;
IdMessage->CharSet = "UTF-8";
IdMessage->ContentType = "multipart/related; type=\"text/html\";
charset=\"utf-8\"";
IdText->CharSet = "UTF-8";
IdText->ContentType = "text/html";
void __fastcall TfrmXXX::IdMessageInitializeISO(wchar_t
&VHeaderEncoding, UnicodeString &VCharSet)
{
VCharSet = "UTF-8";
}
But it doesn't solve the problem. Can anybody help me?
Regards,
Matthias
Technical Details
Message-ID:
<623a3277-14b0-4b0b-bf8b-a48b1e46e0b8@u18g2000pro.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!u18g2000pro.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,130cc43ddc36a9e3,start X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!u18g2000pro.googlegroups.com!not-for-mail From: Matthias Schuppe <matthias2378@gmx.net> Newsgroups: borland.public.cppbuilder.internet.socket Subject: BCB 2009: Indy HTML-Mail Date: Mon, 15 Dec 2008 03:50:11 -0800 (PST) Organization: http://groups.google.com Lines: 36 Message-ID: <623a3277-14b0-4b0b-bf8b-a48b1e46e0b8@u18g2000pro.googlegroups.com> NNTP-Posting-Host: 82.210.249.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1229341811 21923 127.0.0.1 (15 Dec 2008 11:50:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 15 Dec 2008 11:50:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u18g2000pro.googlegroups.com; posting-host=82.210.249.4; posting-account=C0dMXAoAAAAE0OE7ZWAOGd_UkjdOINnY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe)