Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

remail (^)
reply_to Array of objects with the following properties: adl, host,
mailbox, personal.
reply_toaddress (^) The entire reply_to: line, limited to 1024 characters.
return_path Array of objects with the following properties: adl, host,
mailbox, personal.
return_pathaddressThe entire return_path: line, limited to 1024 characters.
sender Array of objects with the following properties: adl, host,
mailbox, personal.
senderaddress (^) The entire sender: line, limited to 1024 characters.
Size (^) Size of the message.
subject (^) Subject of the message.
Subject (^) Subject of the message.
to Array of objects with the following properties: adl, host,
mailbox, personal.
toaddress (^) The entire to: line, limited to 1024 characters.
udate (^) Timestamp
Unseen (^) U if the message is unread, blank otherwise.


<?


$mailbox = imap_open("{mail.server.com}INBOX", "leon",
"password");
$header = imap_header($mailbox, 1);
print("Subject: ". $header->subject);
imap_close($mailbox);
?>


imap_headerinfo


The imap_headerinfo function is an alias for imap_header.


array imap_headers(integer stream)


The imap_headers function returns an array of strings, one element per message.
Each string summarizes the headers for the message.


<?


$mailbox = imap_open("{mail.server.com}INBOX",
"leon", "password");
$headers = imap_headers($mailbox);
for($index = 0; $index < count($headers); $index++)
{

Free download pdf