Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Kalle Sommer Nielsen
.= $headerbit . ': ' . $value . "\r\n"; } and then: echo $header; You might wanna change the $headerbit to look abit more readable =) Cheers, Kalle - Original Message - From: "Richard Kurth" <[EMAIL PROTECTED]> To: "PHP General List"

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Chris
Richard Kurth wrote: > I get a *Catchable fatal error*: Object of class stdClass could not be > converted to string on this line $mail_head = imap_headerinfo($conn, $i); RTM. http://www.php.net/imap_headerinfo It's an object, not a string. print_r($mail_head); -- PHP General Mailing List (h

[PHP] problem imap_headerinfo

2008-04-30 Thread Richard Kurth
I get a *Catchable fatal error*: Object of class stdClass could not be converted to string on this line $mail_head = imap_headerinfo($conn, $i); if I remove it it works fine what would be casing this I really need to read the header. I am using php version 5.2.5 $conn = @imap_open("{" . $bou