Hello, I need to send emails with accented characters from a webservice written in nuSoap using PHP mail:
Code is the following:
$from="[email protected]";
$to="[email protected]";
$subject="My strange email";
$body="Hello, i would like to see accented chars like thes: èèéé òòò ç";
$headers = 'MIME-Version: 1.0' . '\r\n';
$headers .= 'Content-type: text/html; charset=UTF-8' . '\r\n';
// Additional headers
$headers .= 'To: '.$to.'\r\n';
$headers .= 'From: '.$from.'\r\n';
// Mail it
mail($to, $subject, $body, $headers);
Instead of accented chars, i receive bad characters; i've tried to make a web page with header ('Content-type: text/html; charset=utf-8'); and it does not work.
Can anyone help me?
Thanks in advance ! c.