j'arrive pas à me connecter au serveur,
please help
(w2k pro / easyphp)
<?php
$mbox = imap_open("{pop.gmail.com:995/pop3/SSL}", "moi@gmail.com", "mopass");
echo "<h1>Mailboxes</h1>n";
//$folders = imap_listmailbox($mbox, "{pop.gmail.com:995/pop3/ssl}", "*");
$folders = imap_listmailbox($mbox, "{pop.gmail.com:995/pop3/SSL}", "*");
if ($folders == false) {
echo "Appel échoué<br />n";
} else {
while (list($key, $val) = each($folders)) {
echo $val . "<br />n";
}
}
imap_close($mbox);
?>
Message édité le 11/10/2010 16:21:05 |