>   $subject = mb_encode_mimeheader($subject,
> mb_internal_encoding(),"B","\n");
>   return mail('r.blo...@gosub.de', $subject, $message, $header);

Sorry, I missed this earlier: if you have mb_encode_mimeheader() then
you also have mb_send_mail(), which does all the hard work for you.

http://php.net/mb_send_mail
http://jp.php.net/mb_language

So, this might replace almost (*) everything you wrote:
  mb_language('uni');
  mb_send_mail('r.blo...@gosub.de', $subject, $message);

Darren

*: Except the reply-to header. You can add that: mb_send_mail() takes
the same optional 4th parameter as mail().


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

Reply via email to