Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/03/2010, 14:36
minombrexxx
 
Fecha de Ingreso: marzo-2010
Mensajes: 2
Antigüedad: 14 años, 11 meses
Puntos: 0
sendcontact.php

Buenas, antes de todo decir que no tengoooo ni idea de php. Pero tengo este problema con el sendform.php que trae la plantilla web
-------------------------------------------------------------------------------------
<?php

$from = "[email protected]";
$from_name = "DesignHQ";
$subject = "Contact Form";

$to = $_POST['email'];

// collect data
$body = "";
foreach($_POST as $key => $val)
{
if($key != 'captcha')
$body .= ucfirst($key).": ".$val."\r\n";
}

// construct MIME PLAIN Email headers
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/plain; charset=utf-8\n";
$header .= "From: $from_name <$from>\r\nReply-To: $from_name <$from>\r\nReturn-Path: <$from>\r\n";

// send email
$mail_sent = mail($to, $subject, $body, $header);
?>
--------------------------------------------------
Que he de modificar para que me envíe el correo a mi bandeja.