Ver Mensaje Individual
  #11 (permalink)  
Antiguo 15/12/2010, 20:53
opzina
 
Fecha de Ingreso: marzo-2008
Mensajes: 1.020
Antigüedad: 16 años, 1 mes
Puntos: 21
Respuesta: Formulario php, jquery y CSS3

Hice este código pero nada, el mismo error.

Código PHP:
<?php


// recibo los valores del formulario

$nombre $_POST['name'];
$email $_POST['email'];
$pais $_POST['country'];
$mensaje $_POST['message'];

$header 'From: ' $email " \r\n";
$header .= "X-Mailer: PHP/" phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/html";
// Estructura del mensaje

$mensaje "Este mensaje fue enviado por " $nombre " <br />";
$mensaje .= "Su e-mail es: " $email " <br />";
$mensaje .= "Pais: " $pais " <br />";
$mensaje .= "Mensaje: " $mensaje " <br />";
$mensaje .= "Enviado el " date('d/m/Y'time());

$para '[email protected]';
$asunto 'Contacto desde la web';

mail($para$asuntoutf8_decode($mensaje), $header);

// after the email sends, then what...    

if(mail($para$asuntoutf8_decode($mensaje), $header)){
    echo 
'sent'// we are sending this text to the ajax request telling it that the mail is sent..      
}else{
    echo 
'failed'// ... or this one to tell it that it wasn't sent    
}

?>