I am having troubles with some imap_open()
I am using the following code:
<?php
$mbox = imap_open ("{mailserver:9 93/imap/ssl/no-validatecert}IN BOX", "user",
"password") ;
echo "<p><h1>Mailbox es</h1>\n";
$folders = imap_listmailbo x ($mbox,
"{mailserver:99 3/imap/ssl/novalidate-cert}", "*");
if ($folders == false) {
echo "Call failed<br>\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."<br>\n";
}
}
echo "<p><h1>Hea ders 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($mbo x);
?>
I get the following error:
Notice: (null)(): Can't open mailbox
{mailserver:993/imap/ssl/no-validatecert}IN BOX: invalid remote specification
(errflg=2) in Unknown on line 0
I am using PHP 4.3.1 under Windows XP with Apache 2.0.46. I have enabled
the imap and openssl extensions in php.ini.
Anyone know what the problem is? I have done some googling and RTFM but I
can't see where I am going wrong.
Thanks in advance
James Turnbull
I am using the following code:
<?php
$mbox = imap_open ("{mailserver:9 93/imap/ssl/no-validatecert}IN BOX", "user",
"password") ;
echo "<p><h1>Mailbox es</h1>\n";
$folders = imap_listmailbo x ($mbox,
"{mailserver:99 3/imap/ssl/novalidate-cert}", "*");
if ($folders == false) {
echo "Call failed<br>\n";
} else {
while (list ($key, $val) = each ($folders)) {
echo $val."<br>\n";
}
}
echo "<p><h1>Hea ders 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($mbo x);
?>
I get the following error:
Notice: (null)(): Can't open mailbox
{mailserver:993/imap/ssl/no-validatecert}IN BOX: invalid remote specification
(errflg=2) in Unknown on line 0
I am using PHP 4.3.1 under Windows XP with Apache 2.0.46. I have enabled
the imap and openssl extensions in php.ini.
Anyone know what the problem is? I have done some googling and RTFM but I
can't see where I am going wrong.
Thanks in advance
James Turnbull
Comment