-1
I created a form with php sending the data to my email, but the data that contains accents get distorted and bad to read. Example: "Frog test number 29"
PHP code:
$destinatario = "[email protected]";
$assunto = "FORMULARIO SITE";
$nome = $_REQUEST['name'];
$email = $_REQUEST['email'];
$telefone = $_REQUEST['fone'];
$mensagem = $_REQUEST['message'];
// monta o e-mail na variavel $body
$body = "===================================" . "\n";
$body = $body . "CONTATO FORMULÁRIO DO SITE" . "\n";
$body = $body . "===================================" . "\n\n";
$body = $body . "Nome: " . $nome . "\n";
$body = $body . "telefone: " . $telefone . "\n";
$body = $body . "Email: " . $email . "\n";
$body = $body . "-----------------------------------" . "\n";
$body = $body . "Mensagem: " . $mensagem . "\n\n";
$body = $body . "===================================" . "\n";
// envia o email
mail($destinatario, $assunto , $body, "From: $email\r\n");
die( 'Sua Mensagem foi enviada. Obrigado!');
Solved it right, thank you!
– William