Hi,
I also encountered this problem.
However, I changed to use another way to get the values.
Instead of using
echo "From:". $header[fromaddress];
You can try this:
echo "From:". $header->fromaddress;
Let see any output on the screen.
HTTP-404 wrote:
Hello, friends
I have installed imap extention on my win2000as/php4.0.4pl1/apache-1.3.17 box
i use folliwing script but nothing is diplayed
<?php
$MAILSERVER="{localhost/imap}";
$link=imap_open($MAILSERVER,'dan','password');
$header=imap_header($link,$num);
echo "From: $header[fromaddress]
";
echo "To: $header[toaddress]
";
echo "Date: $header[Date]
";
echo "Subject: $header[Subject]
";
echo imap_body($link,$num);
?>
i can see how they talk in my mail server logs
Sat 2001-02-10 12:49:34: [512:6] Accepting IMAP connection from [127.0.0.1]
Sat 2001-02-10 12:49:34: [512:6] OK harik.d2g.com IMAP4rev1 MDaemon 3.5.2 ready
Sat 2001-02-10 12:49:34: [512:6] 00000000 CAPABILITY
Sat 2001-02-10 12:49:34: [512:6] CAPABILITY IMAP4rev1 AUTH=CRAM-MD5
Sat 2001-02-10 12:49:34: [512:6] 00000000 OK CAPABILITY comple....