Jump to content

Erro no mail.php com acentos


alphasil

Recommended Posts

Oi ppl

É assim, tenho um erro quando recebo as palavras acentuadas, ao receber ficam assim

Nome: gil

E-mail: xxxx@gmail.com

Assunto: tetse

Mensagem: Pre?

em vez de

Nome: gil

E-mail: xxxxxx@gmail.com

Assunto: tetse

Mensagem: Preços

o meu php está assim

<?php

$subject = "PEDIDO DE INFORMAÇÕES";

$nome =utf8_decode($_POST['nome']);

$email = $_POST['email'];

$assunto =utf8_decode($_POST['assunto']);

$mensagem =utf8_decode($_POST['mensagem']);

$recipient = "xxxx@gmail.com";

$msg = "Nome: $nome\nE-mail: $email\nAssunto: $assunto\nMensagem: $mensagem";

$mailheaders = "$nome - $assunto";

$ok=mail("$recipient", "$assunto", "$msg", "$mailheaders");

echo "&ok=$ok";

?>

E uso System.useCodepage = true; no flash

o que será??

Obrigado

Edited by alphasil
gmc11

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.