Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/09/2006, 09:00
Abite
 
Fecha de Ingreso: septiembre-2005
Mensajes: 70
Antigüedad: 18 años, 7 meses
Puntos: 0
funcion mail() con hotmial, gmail,...

Hola,
estoy intentando usar la funcion mail() de php para enviar emails a los usuarios de mi foro, el problema es que cuando las direcciones son tipo hotmail, gmail, ono,... no llegan al destinatario.

El codigo que estoy usando es:

Código PHP:
if (strtoupper(substr(PHP_OS03) == 'WIN')) {
       
$eol "\r\n";
} elseif (
strtoupper(substr(PHP_OS03) == 'MAC')) {
       
$eol "\r";
} else {
       
$eol "\n";
}

$mensaje "Email enviado por: ".$_POST['nombre'].$eol
$mensaje .= "Telefono: ".$_POST['telefono'].$eol
$mensaje .= "Email: ".$_POST['email'].$eol
$mensaje .= "Comentario/s: ".$_POST['comentarios'].$eol

$remitente "[email protected]";
$asunto"Mensaje: [email protected]";

$cabecera .= "From: foro.com <$remitente>".$eol;
$cabecera .= "Return-Path: foro.com <$remitente>".$eol;
$cabecera .= "MIME-Version: 1.0".$eol;
$cabecera .= "Content-type: text/html; charset=iso-8859-1".$eol;

mail($to$asunto$mensaje$cabecera) or die ("Su mensaje no se envio."); 
¿Alguna idea?