> function sendEmail($to, $from, $subject, $message) {
>   $header = 'From: ' . $from . "\r\n" . 'Reply-To: ' . $from . "\r\n" .
> 'X-Mailer: PHP/' . phpversion();
>   $header .= "\nContent-Type: text/plain; charset=UTF-8";
>   $header .= "\nContent-transfer-encoding: quoted-printable\n";
> 
>   $subject = utf8_decode($subject);
>   $subject = mb_encode_mimeheader($subject,
> mb_internal_encoding(),"B","\n");
>   return mail('r.blo...@gosub.de', $subject, $message, $header);
> }

Does dropping the "quoted-printable" header make any difference? As far
as I can see you are sending actual 8-bit UTF-8, not quoted-printable.

> This is what I had found some day in order to send UTF-8-encoded emails.
> Here with WindowsXP/Thunderbird everything works fine. But a friend of
> mine using some Windows and some Outlook will always receive srumbled
> german umlauts...

As you didn't say explicitly, have you confirmed he can receive an email
(e.g. sent by thunderbird) in UTF-8 encoding, with umlauts, and it
displays okay?

If so, send both versions to yourself (i.e. sent by thunderbird, and
sent by PHP mail()) and look at the source to see what is different.

Darren



-- 
Darren Cook, Software Researcher/Developer
http://dcook.org/mlsn/ (English-Japanese-German-Chinese-Arabic
                        open source dictionary/semantic network)
http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to