[PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Eli Orr (Office)
Hi, I'm trying to enable a whole Email as UTF-8 - The Body is OK but the Subject remains ANSI - Please help $headers = From:$from. \r\n . Reply-To:$from . \r\n . *Content-type:text/html;charset=utf-8;*.\r\n . X-Mailer: PHP/.phpversion(); --

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Bálint Horváth
Hi, For the subject you can use sg. like this: ?php function mail_utf8($to, $subject = '(No subject)', $message = '', $header = '') { $header_ = 'MIME-Version: 1.0' . \r\n . 'Content-type: text/plain; charset=UTF-8' . \r\n; mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message,

Re: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Andre Polykanine
Subject: [PHP] How to enable UTF-8 Subject String ? Only Body is set ok Hi, I'm trying to enable a whole Email as UTF-8 - The Body is OK but the Subject remains ANSI - Please help $headers = From:$from. \r\n . Reply-To:$from . \r\n . *Content-type:text/html