Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/12/2008, 09:40
tucuta
 
Fecha de Ingreso: diciembre-2008
Mensajes: 33
Antigüedad: 16 años, 3 meses
Puntos: 0
Tengo problema para ingresar captcha

Me encontré un código para ingresar un captcha en mi formulario pero no me llegan los mensajes a mi correo... el código es el siguiente:

CONTACTO.PHP

<img src="captcha.php" width="100" height="30" vspace="3"><br>
<input name="tmptxt" type="text" size="30"><br>
<input name="btget" type="submit" class="boton" value="Enviar">
<input name="action" type="hidden" value="checkdata">
<label>
<input type="reset" name="Borrar" id="Borrar" value="Restablecer" />
</label>


ENVIA.PHP

<?php
if ($_POST['action'] == "checkdata") {
if ($_SESSION['tmptxt'] == $_POST['tmptxt']) {
echo "Mensaje Enviado correctamente";
} else {
echo "Código erróneo";
}
exit;
}
?>

<?php

$nombre = $_POST['nombre'];
$mail = $_POST['mail'];
$empresa = $_POST['empresa'];

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

$mensaje = "Mensaje enviado por ... " . $nombre . ", de la empresa " . $empresa . " \r\n";
$mensaje .= "Su e-mail es: " . $mail . " \r\n";
$mensaje .= "Dice que: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "Fue enviado... " . date('d/m/Y', time());

$para = "MI CORREO";
$asunto = 'MI SITIO WEB';


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


?>


Alguien me puede ayudar a hacer que los mensajes me lleguen a mi correo?

Gracias de antemano.