hi guys ..
this is a very simple doubt IMAP ..
when i open imap stream for a user ...
if the user does not exist .. it gives me a warning message saying could not open IMAP stream ...
how do i avoid that message being printed on the screen ...
my code ....
if($link = imap_open("{localhost:143}INBOX","$userloggedin","$userpassword"))
{
$nummessages = imap_num_recent($link);
if($nummessages > 0)
echo "You Have <a href='mail1.php'>".$nummessages." New</a> Mails....";
else
echo "You Have No New Mails";
}
else
{
echo "You Have No New Mails";
}
still it prints a warning message on the screen ....
can someone tell me how do i avoid it ...
thanks in advance ...
danny ...