I tried to send a text email with non-English characters using PHPs mail
function. But instead my message went with funny looking garbage characters. How do I fix it?
I use this piece of code:
function _mail($to, $subject, $content)
{
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $content, $headers);
}
Some of the characters came out as question marks...