Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Sending a SMTP message with UTF-8 subject
| Subject: | Re: Sending a SMTP message with UTF-8 subject |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 26 Nov 2007 10:11:14 |
"Richard" <ritchie872@yahoo.com> wrote in message
news:47477e62$1@newsgroups.borland.com...
> I want to send a mail that will contain unicode caracters in
> the body AND some headers.
You are already doing what is needed. Since Indy does not fully support
UTF-8 under Win32 yet, you have to encode the data manually before passing
it to TIdMessage, which you are already doing.
> Mess.Body.Text:= UTF8Encode('Some WIDE string');
You need to also set the TIdMessage.CharSet property to 'utf-8' as well.
> the headers are messed up.
You need to be more specific. What exactly is "messed up"?
> When I look to the rough message I see that the headers "seem" to be OK:
> =?utf-8?B? etc...
Please show the actual raw data.
> they don't look right in the clients.
Do the clients actually support UTF-8 or encoded headers to begin with?
Gambit