Marlon Posted August 9, 2013 Share Posted August 9, 2013 pessoal nunca consegui resolver este problema, sempre que alguem envia um e-mail usando o formulario de contato eu recebo os e-mail assim Mensagem do SITE. Nome: X Email: X Telefone: X Mensage: Olá, estou querendo abrir um servidor de SA:MP e a BobyHost parece ser realmente boa. Gostaria de saber se vocês aceitam boleto bancário ? A opção Transferência Bancaria é isso ? / Hi, i'm wanting to open a SA:MP server, and the BobyHost looks be really good. I want to know if you accept "Boleto Bancário" ? The "Transferência Bancaria" option is it ? ip da origem: 177.134.207.166 com esses problemas de acentuação. dai procurei no google e vi que tinha que definir metas, utf-8 e iso mas problema e que se eu mudo de utf-8 para iso o site todo buga os acentos teria como alguem corrigir o codigo pramim ? <!DOCTYPE html> <html> <head> <title>Grupo Midia xD</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <!-- Styles --> <link href="css/bootstrap.min.css" rel="stylesheet" /> <link href="css/bootstrap-responsive.min.css" rel="stylesheet" /> <link href="css/bootstrap-overrides.css" rel="stylesheet" /> <link rel="stylesheet" type="text/css" href="css/theme.css" /> <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css' /> <link rel="stylesheet" type="text/css" href="css/lib/animate.css" media="screen, projection" /> <link rel="stylesheet" href="css/contact.css" type="text/css" media="screen" /> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /></head> <body> <div class="navbar navbar-inverse navbar-static-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="index.html"> <img src="img/logo.png" /> </a> <div class="nav-collapse collapse"> <ul class="nav pull-right"> <li><a href="index.html">INÍCIO</a></li> <li><a href="empresa.html">A EMPRESA</a></li> <li><a href="http://www.blog.midiaxd.com">BLOG</a></li> <li><a href="contato.html" class="active">CONTATO</a></li> <li><a href="/painel">AREA DO CLIENTE</a></li> </ul> </div> </div> </div> </div> <div id="contact"> <div class="container"> <div class="section_header"> <h3>Entre em contato</h3> </div> <div class="row contact"> <p> Gostaríamos muito de ouvir de você. Está Interessado em trabalhar com o grupo da MidiaxD ?. Preencha o formulário abaixo com algumas informações sobre o seu projeto e iremos responder assim que puder. Por favor, aguarde alguns dias para respondermos.</p> <?php echo "<html> <head> <title> Processando... </title> <link rel=\"stylesheet\" href=\"class.css\" type=\"text/css\"> </head>"; $nome = $_POST['nome']; $email = $_POST['email']; $telefone = $_POST['telefone']; $mensage = $_POST['mensage']; $ip = $_SERVER['REMOTE_ADDR']; $mail_destino = "contato@midiaxd.com"; echo "<body bgcolor=\"#FFFFFF\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"0\" marginheight=\"0\"> <center><font class=\"texto\">"; $mail_header = "Mensagem do SITE."; $msg_reply = "Olá $nome,\nRecebemos o seu email com o assunto $assunto.\n\nObrigado pelo seu contato!\n\n Esta é uma mensagem automatica de confirmação.\n Por Favor não responda este e-mail.\n $ip"; $msg_erro = "Atenção ! Os campos (Nome, E-mail e Mensagem ) não podem estar em branco."; //Obrigatoriedade if ($nome!="" and $mensage!="" and $email!="") { $msg.="$mail_header\n\n"; $msg.="Nome: $nome\n"; $msg.="Email: $email\n"; $msg.="Telefone: $telefone\n"; $msg.="Mensage: $mensage\n"; $msg.="ip da origem: $ip"; if (mail($mail_destino, "Midia xD - Contato", $msg, "From:$nome<$email>")) { echo " </font></center> <html> <meta http-equiv=refresh content=10;URL=./></html>"; echo "<font class=\"texto\">"; echo "<b>olá! $nome</b>,<br><br>sua mensagem:<br> <font color=\"#FF0000\"><b>$mensage </b></font></p>Foi enviada com sucesso!"; echo " Obrigado!<br>Você irá receber um e-mail de confirmação desta mensagem.<br><br>Endereço de ip: <b>$ip</b></font> <br>"; echo "<br>Em menos de 24 horas iremos responde-lo.<br></font> "; mail("$nome<$email>", "E-mail de confirmação da Midia xD", $msg_reply, "From:<$mail_destino>"); } else echo " <meta http-equiv=refresh content=3;URL=../> </html><center><br><br><font color=red> <b>Erro ao enviar e-mail!</b> </font></center> "; } else { echo " <br><br><center> $msg_erro <br><br> <a href=\"http://www.midiaxd.com/contato.html\" class=\"links\">Por favor volte e preencha corretamente</a> </center> "; } ?> Link to comment Share on other sites More sharing options...
tadeugomides Posted August 9, 2013 Share Posted August 9, 2013 Verifica o charset. ;) Link to comment Share on other sites More sharing options...
Pedro Sodre Posted August 9, 2013 Share Posted August 9, 2013 Adicione no início do seu código php a seguinte linha: header ('Content-type: text/html; charset=ISO-8859-1'); Link to comment Share on other sites More sharing options...
Marlon Posted August 9, 2013 Author Share Posted August 9, 2013 ficou assim <?php header ('Content-type: text/html; charset=ISO-8859-1'); echo "<html> <head> logo no inicio e no site deu o seguinte waring Warning: Cannot modify header information - headers already sent by (output started at /home/midiaxdc/public_html/enviar.contato.php:57) in/home/midiaxdc/public_html/enviar.contato.php on line 58 Link to comment Share on other sites More sharing options...
Marlon Posted August 10, 2013 Author Share Posted August 10, 2013 não deu certo Link to comment Share on other sites More sharing options...
Recommended Posts