Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/06/2013, 12:16
rakol
 
Fecha de Ingreso: marzo-2013
Mensajes: 36
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: Porque las Ñ y los acentos me salen en ?

He puesto esto y sigue sin funcionar, que hago mal? ayuda

Cita:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<?php
$Nombre = $_POST['Nombre'];
$Apellidos = $_POST['Apellidos'];
$Ciudad = $_POST['Ciudad'];
$Provincia = $_POST['Provincia'];
$Email = $_POST['Email'];
$Telefono = $_POST['Telefono'];
$Servicio = $_POST['Servicio'];
$Destinatario = $_POST['Destinatario'];
$texto = $_POST['texto'];

$header = 'From: ' . $Email . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "Nombre: " .$Nombre. " \r\n";
$mensaje .= "Apellidos: " .$Apellidos. " \r\n";
$mensaje .= "Ciudad: " .$Ciudad. " \r\n";
$mensaje .= "Provincia: " .$Provincia. " \r\n";
$mensaje .= "Telefono: " .$Telefono. " \r\n";
$mensaje .= "Servicio: " .$Servicio. " \r\n";
$mensaje .= "Destinatario: " .$Destinatario. " \r\n";
$mensaje .= "Mensaje: " .$texto. " \r\n";
$mensaje .= "Enviado el " . date("d/m/y \a \l\a\s H:i:s ");

$para = '[email protected]';
$para2 = '[email protected]';
$asunto = 'Contacto desde Tu Web';

mail($para, $asunto, utf8_decode($mensaje), $header);
mail($para2, $asunto, utf8_decode($mensaje), $header);

echo "Su mensaje a sido enviado correctamente" ;

?>