Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BCB 2009: Indy HTML-Mail

21 views
Skip to first unread message

Matthias Schuppe

unread,
Dec 15, 2008, 6:50:11 AM12/15/08
to
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

0 new messages