imap_open()
| From: | Scott Mebberson | Date: | Fri, 03 Nov 2000 04:58:59 +0000 |
| Subject: | imap_open() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23517@lists.php.net to get a copy of this message | ||
Hi Guys,
I am trying to write an app to check if I have any mail in my inbox. But I
keep getting an error:
this is my code:
<?php
$mbox = imap_open("{localhost/pop3:110}INBOX", "username",
"password");
echo ("\$mbox = \"$mbox\"");
$headers = imap_headers($mbox);
for($x=1; $x < count($headers); $x++)
{
$idx=($x-1);
echo "<a href=\"view.php?num=$x\">$headers[$idx]</a><br>";
}
?>
the error I get is: Fatal error: Call to unsupported or undefined function
imap_open() in /home/ezigrap/public_html/mail/list.php on line 3
I am using the correct username and password. But imap_open() is a
function!!!! Any ideas????