Discussion: mail...
Afficher un message
Vieux 22/06/2008, 21h45   #1
hareldo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mail...

this code supposed to wrtie how many mails i have in my mailbox in
gmail:

<?php
$ServerName = "{pop.gmail.com:995/pop3/ssl/novalidate-cert}";

$UserName = "user";
$PassWord = "pass";

$mbox = imap_open($ServerName, $UserName,$PassWord) or die("Could
not open Mailbox - try again later!");

if ($hdr = imap_check($mbox)) {
echo "Num Messages " . $hdr->Nmsgs;
} else {
echo "failed";
?>

when i used this code at the first time,it wrote exacly how many mail
i have,but every time when i used it again its wrote one mail less.
what the problem??
  Réponse avec citation
 
Page generated in 0,05402 seconds with 9 queries