imap()
Posted: Sun Nov 03, 2002 3:16 pm
Hi
can anyone help me please. Everytime I tried to execute the
file below I get the error message:
"Call to undefined function: imap_open() "
can anyone help me please. Everytime I tried to execute the
file below I get the error message:
"Call to undefined function: imap_open() "
Code: Select all
$mbox = imap_open ("{my.imap.host}INBOX","myusername","mypassword") ||
die ("can't connect: " . imap_last_error());
$check = imap_check ($mbox);
if($check) {
print "Date: " . $check->Date . "\n" ;
print "Driver: " . $check->Driver . "\n" ;
print "Mailbox: " . $check->Mailbox . "\n" ;
print "Messages: " . $check->Nmsgs . "\n" ;
print "Recent: " . $check->Recent . "\n" ;
}
else {
print "imap_check() failed: " . imap_last_error() . "\n";
}
imap_close ($mbox);