dies on imap_open
First,
The difference, of course, is that one replaces A_SERVER_CONFIG, USERNAME, and PASSWORD.
The problem I'm having is that when I put in the wrong settings for a account, the script ends displaying the appropiate message. But when one puts in the proper values, the script dies. No error message is displayed, in fact, the webpage doesn't refresh at all even if I change some of the static elements.
I have gotten PHP email clients to work on the server before, but not one's I've written.
if(!$mbox){ ?>
Could not open mail stream
}else{ ?>
Mailboxes
$folders = imap_listmailbox ($mbox, "{A_SERVER_CONFIG}", "*");
if ($folders == false) {
echo "Call failed<br>\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."
\n";
}
}
?>
You have = imap_num_msg($mbox) ?> Message(s)
Headers in INBOX
$headers = imap_headers ($mbox);
if ($headers == false) {
echo "Call failed<br>\n";
} else {
while (list ($key,$val) = each ($headers)) {
echo $val."
\n";
}
}
imap_close($mbox);
?>
} ?>
= time() ?>
The difference, of course, is that one replaces A_SERVER_CONFIG, USERNAME, and PASSWORD.
The problem I'm having is that when I put in the wrong settings for a account, the script ends displaying the appropiate message. But when one puts in the proper values, the script dies. No error message is displayed, in fact, the webpage doesn't refresh at all even if I change some of the static elements.
I have gotten PHP email clients to work on the server before, but not one's I've written.
