This is what the message is showing: Cão açorda água côco teste acentuação
This is what I wanted it to show: Cão açorda água côco teste acentuação
Can someone give me a hand? I would be very grateful.
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if(!empty($_POST['contactname']) && !empty($_POST['contactemail']) && !empty($_POST['contactmessage'])) {
$to = 'email@gmail.com'; // Your e-mail address here.
$body = "
NCliente: {$_POST['contactname']}
Email: {$_POST['contactemail']}
{$_POST['contactmessage']}
";
mail($to, "Mensagem de ", $body, "From: {$_POST['contactemail']}"); // E-Mail subject here.
}
}
?>