email - Use special characters in PHP mail() function -


i send special characters (like é, à, ü,...) using php mail() function. tried this: (just fragment of code)

    $headers        = 'from: info@something.be';     $header_        = 'mime-version: 1.0' . "\r\n" . 'content-type: text/plain; charset=utf-8' . "\r\n";      $to         = "me@gmail.com";     $subject        = 'confirmation de commande';     $message        = "bonjour $firstname";        if (mail($to, '=?utf-8?b?'.base64_encode($subject).'?=', $message, $headers)) {... 

but reason, things sâélève. advice?

make sure set internal encoding utf8 iconv_set_encoding.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -