Код: Выделить всё
$name = "áé";
$email = "something@gmail.com";
$htmlContent = '
Dear ' . $name. '! //error if $name contains both "á" and "é", otherwise email is sent
';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: ... \r\n";
$headers .= "Reply-To: ... \r\n";
if (mail($email, $subject, $htmlContent, $headers))
Подробнее здесь: https://stackoverflow.com/questions/788 ... characters