Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/09/2009, 19:42
Avatar de loncho_rojas
loncho_rojas
Colaborador
 
Fecha de Ingreso: octubre-2008
Ubicación: En el mejor lugar del mundo
Mensajes: 2.704
Antigüedad: 15 años, 6 meses
Puntos: 175
Respuesta: Promblema con acentos al enviar mail por php

pruebalo asi

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style4 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>
<?php
$fecha
=date("d-m-y");
$hora=date("H:I:s");
$destino="[email protected]";
$asunto="Comentario";
$desde 'From: '.$_POST['email'];
$comentario "
Nombre:" 
.$_POST['nombre']."\n
Email:" 
.$_POST['email']."\n
Consulta:" 
.$_POST['solicitud']."\n
Enviado:$fecha a las $hora\n
\n
"
;
mail($destino,utf8_decode($asunto),utf8_decode($comentario),utf8_decode($desde));
?>
<span class="style4">El formulario ha sido enviado con éxito. Gracias por su colaboración.</span>
</body>
</html>