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
Post a Comment