$mbox = imap_open( "{your.imap.host:143}" ,"username" ,"password") or die("can't connect: ".imap_last_error()); $status = imap_setflag_full($mbox ,"2,5" ,"\\Seen \\Flagged"); print gettype($status) ."\n"; print $status ."\n"; imap_close($mbox);
?php $mbox = imap_open( "{votre.hote.imap:143}" ,"utilisateur" ,"mot_de_passe") or die("can't connect: ".imap_last_error()); $status = imap_setflag_full($mbox ,"2,5" ,"\\Seen \\Flagged"); print gettype($status) ."\n"; print $status ."\n"; imap_close($mbox);?