![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/01/2006, 19:09
|
| | Fecha de Ingreso: abril-2005
Mensajes: 139
Antigüedad: 19 años, 9 meses Puntos: 1 | |
Código PHP: $sendTo = "[email protected]";
$email = $_POST["email"];
$asunto="Envio desde la pagina web";
$cuerpo = "Nombre: " . $_POST["nombre"] . "\n" . "Apellido: " . $_POST["apell"] . "\n" . "Email: " . $_POST["email"] . "\n" . "Empresa: " . $_POST["empr"] . "\n" . "Dirección: " . $_POST["direcc"] . "\n" . "Teléfono: " . $_POST["telno"] . "\n\n" . "Mensaje: " . $_POST["mensaje"];
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .="From: $_POST['nombre'] < $_POST['email']>\r\n";
$header.="Reply-To: $_POST['email']\r\n";
$header.="X-Mailer: PHP/\r\n";
if(!@mail($sendTo, $asunto,$cuerpo,$header))
{exit("Email no enviado, intentelo de nuevo.");}
else{echo "Email enviado correctamente";}
__________________ Ciao y suerte. |