note 30137 rejected from function.imap-header by rioter

From: Date: Fri, 07 Mar 2003 12:32:37 +0000
Subject: note 30137 rejected from function.imap-header by rioter
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44979@lists.php.net to get a copy of this message
I try to write a mail bot. Erverthing is fine, but i need the "Return_Path" line which will be listet by imap_fetchheader. I tried this: $header = imap_header($mail_stream, $num); ... $return = $header->return_path[0]; while (list($key, $val) = each($return)) { echo "$key => $val\n"; } I got the error : Variable passed to each() is not an array or object in ... So what is wrong with my script?

« previous php.notes (#44979) next »