I tried to use the code below (i copied from php manual) and I get
Fatal error: Call to undefined function: imap_open() in c:\foxserv\www\mail.php on line 2
here is the code. I dont know why this would do that so any help would be great.
<?php
$mbox = imap_open("{server:143/OP_READONLY}", "username", "password");
echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox ($mbox, "{your.imap.host:143}", "*");
if ($folders == false) {
echo "Call failed<br>\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."<br>\n";
}
}
echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_headers ($mbox);
if ($headers == false) {
echo "Call failed<br>\n";
} else {
while (list ($key,$val) = each ($headers)) {
echo $val."<br>\n";
}
}
imap_close($mbox);
?>