Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/05/2007, 05:53
Avatar de da2
da2
 
Fecha de Ingreso: abril-2003
Ubicación: Catalunya
Mensajes: 239
Antigüedad: 21 años, 1 mes
Puntos: 0
Re: Recibir IP usuario con Mail()

Gracias por la solución.
Yo creia que dentro del $cuerpo (con etiquetas html) se tenian que usar las etiquetas php.
Codigo erroneo:
Código:
$cuerpo = '
<html>
<head>
   <title>Prueba de correo</title>
</head>
<body>
<h1>ERROR</h1>
<p>
<b>Posible ataque</b>. A mira que está pasando.
</p>
<? echo "Ip:". $ip ."<br>";
echo "ISP:". $isp ."<br>";
?>
</body>
</html>
';
En realidad el código tendria que ser este:

Código:
$cuerpo = "
<html>
<head>
   <title>Prueba de correo</title>
</head>
<body>
<h1>ERROR</h1>
<p>
<b>Posible ataque</b>. A mira que está pasando.
</p>
Ip: $ip <br>
ISP: $isp <br>

</body>
</html>
";
Pero no entiendo porque no se usan etiquetas PHP