Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/12/2005, 09:39
Avatar de hunab
hunab
 
Fecha de Ingreso: febrero-2005
Ubicación: Barcelona
Mensajes: 133
Antigüedad: 19 años, 1 mes
Puntos: 1
es tan sencillo como esto:
Código PHP:
if(isset($_POST["asunto"]) && isset($_POST["nombre"]) && isset($_POST["email"])&& isset($_POST["pais"])&& isset($_POST["telefono"])&& isset($_POST["mensaje"]) ){
$fecha date("D-M-y H:i");
$mymail "[email protected]";
$subject "Desde el Sitio dyd";
$contenido .= "ASUNTO : ".$_POST["asunto"];
$contenido .= "NOMBRE : ".$_POST["nombre"];
$contenido .= "EMAIL : ".$_POST["email"];
$contenido .= "PAIS : ".$_POST["pais"];
$contenido .= "TELEFONO : ".$_POST["telefono"];
$contenido .= $_POST["mensaje"]."\n\n";
$contenido .= "el mensaje fue escrito el ".$fecha;
$header "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"]."\n";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-Type: text/plain";
mail($mymail$subjectutf8_decode($contenido) ,$header);
echo 
"&estatus=ok&";

__________________
Marcio Barrios
marciobarrios.com // artículos sobre estándares y desarrollo web