goon12
04-09-2002, 11:57 PM
Ok, I got the imap_open() working in php..kinda using the following code
$username = "xxxxx";
$password = "xxxxx";
$mailserver = "{www.xxxxx.com/imap}"; $link = imap_open($mailserver, e,$password);
$headers = imap_headers($link);
for ($x=1; x <= count($headers);$x++) {
$idx = $x-1;
echo("Header: " . $headers[$idx] . "<br>");
}
I am able to list the mail.. But it sends the page into an infinite loop. It will show the mail messsages, then it just prints "Header: " forever underneath it.
How can I stop this, is it somehting in my code?
thanks,
goon12
[ 09 April 2002: Message edited by: goon12 ]
$username = "xxxxx";
$password = "xxxxx";
$mailserver = "{www.xxxxx.com/imap}"; $link = imap_open($mailserver, e,$password);
$headers = imap_headers($link);
for ($x=1; x <= count($headers);$x++) {
$idx = $x-1;
echo("Header: " . $headers[$idx] . "<br>");
}
I am able to list the mail.. But it sends the page into an infinite loop. It will show the mail messsages, then it just prints "Header: " forever underneath it.
How can I stop this, is it somehting in my code?
thanks,
goon12
[ 09 April 2002: Message edited by: goon12 ]