Pierre FAUQUE - 2009-06-09 10:38:45 -
In reply to message 1 from Alidad Modjtabai
Hello Alidad,
This is a short commented example :
<?php
// ----- example --------------------------------------------------
// mail address = john.doe@wanadoo.fr
// mail account = john.doe@pop.wanadoo.fr (not real address)
// protocol : pop3
// pop server port : 110
// --------
// see the PHP functions : imap_open() and imap_check()
// Syntax of imap_open() :
// $var = imap_open ("{mailhost:port/protocol}", "your.mail.login", "your_password");
// ----------------------------------------------------------------
$mailbox = imap_open("{pop.wanadoo.fr:110/pop3}", "john.doe", "zK5cg12Qf");
$checkmbox = imap_check($mailbox);
echo "Nb de messages : " . $checkmbox->Nmsgs;
?>
Is this example clear and satisfactory for you ?
Pierre