note 3529 rejected from ref.imap by spic
| From: | spic@php.net | Date: | Mon, 26 Aug 2002 11:06:53 +0000 |
| Subject: | note 3529 rejected from ref.imap by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35652@lists.php.net to get a copy of this message | ||
When I call the imap_open() function it generates a warning:
Warning: Mailbox is empty in //opt/data/htdocs/ronnie/mail/InBox.php on line 38
The funny thing here is that I must have that f_ck_ng stream in order to check whether there are
mails or not!!
If I send a couple of mails to that particular mailbox and run the script again, it works properly.
What do I do?
Code:
$MailServer = "{mail.xxx:net/pop3:110}INBOX";
$Username = "myUserName";
$Password = "myPassword";
$mboxStream = imap_open( $MailServer, $Username, $Password);
It doesn't help checking whether the imap_open() returns false or anything...I get a error
anyway.