PHP : Function Reference : IMAP, POP3 and NNTP Functions : imap_last_error
josh
A simple login error test:
<?php
$mbox = imap_open ("{www.yoursite.com:143}INBOX", "$username", "$password");
if ( $mbox === false ) {
exit ("Can't connect: " . imap_last_error() ."\n");
}
else
{
echo"Logined:";
//do stuff
}
?>
|