Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/03/2010, 06:49
Avatar de Gulinaidas
Gulinaidas
 
Fecha de Ingreso: febrero-2010
Ubicación: La Plata, ARG
Mensajes: 88
Antigüedad: 14 años, 2 meses
Puntos: 1
Marcar mail como leido

Hola...quisiera saber si hay alguna forma de obtener los mail de mi hosting y setearlos como leidos.......

Código PHP:
$link connect("pop3.xxx.com","[email protected]","xxx"); 
$headers=imap_headers($link);

for(
$x=1$x <= count($headers); $x++) 
        {
                
                
/* get information specific to this email */
                
$overview imap_fetch_overview($link,$x,0);
                
$message imap_fetchbody($link,$x,2);
                
                
/* output the email header information */
                
$output.= '<div class="toggler '.($overview[0]->seen 'read' 'unread').'">';
                
$output.= '<span class="subject">'.$overview[0]->subject.'</span> ';
                
$output.= '<span class="from">'.$overview[0]->from.'</span>';
                
$output.= '<span class="date">on '.$overview[0]->date.'</span>';
                
$output.= '</div>';
                
                
/* output the email body */
                
$output.= '<div class="body">'.$message.'</div>';
        }
        
        echo 
$output
con esto logro obtener los mail con sus datos respectivos pero no encuentro una manera de q $overview[0]->seen sea seteado como 1 (leido).....