Hi Richard
Like Chris replied, then the returned value of imap_headerinfo() is an
stdClass object. You can iterate though
all the object properties like this:
$header = '';
foreach($mail_head as $headerbit => $value)
{
if(empty($value))
{
continue;
}
$header .= $headerbit .
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
2 matches
Mail list logo