Ver Mensaje Individual
  #26 (permalink)  
Antiguo 04/03/2009, 10:57
curaparroco
 
Fecha de Ingreso: febrero-2009
Mensajes: 30
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: ¿porque no recibo los e-mail de mi web?

Tengo el mismo problema.
Lo he intentado desde flash a php, desde html a php que es el intento actual.
Este es el código
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xxxx : / /www .w3.org/ TR/xhtml1 /DTD/xhtml1-transitional.dtd">
<html xmlns="zzz .w3 . org / 1999/xh tml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php
$nombre = $_POST['nombre'];
$mail = $_POST['mail'];
$localidad = $_POST['localidad'];

$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 = "Este mensaje fue enviado por " . $nombre . ", de la localidad " . $localidad . " \r\n";
$mensaje .= "Su e-mail es: " . $mail . " \r\n";
$mensaje .= "Mensaje: " . $_POST['mensaje'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = 'direcciondestino @hotmail.com';
$asunto = 'Contacto desde el sitio web';

if(mail($para, $asunto, utf8_decode($mensaje), $header))
echo '&estatus=ok&';
else
echo '&estatus=nomail&';

?>
</body>
</html>
el cual tiene la siguiente respuesta de error
Cita:
Warning: mail() [function.mail]: SMTP server response: 550 Sender address must be specified. in I: \ Ferozo Web Hosting \ mi pagina .com .ar\ public_html \ s end.php on line 27
&estatus=nomail&
le agrego espacios porque al tener menos de 30 mensajes en este sitio no me deja cargar la pregunta

y se me termino la sapiencia

Gracias desde ya