imap_headerinfo
(PHP 4, PHP 5)
imap_headerinfo — Read the header of the message
Descripción
object imap_headerinfo
( resource $imap_stream
, int $msg_number
[, int $fromlength
[, int $subjectlength
[, string $defaulthost
]]] )
Gets information about the given message number by reading its headers.
Lista de parámetros
- imap_stream
-
An IMAP stream returned by imap_open().
- msg_number
-
The message number
- fromlength
-
Number of characters for the fetchfrom property. Must be greater than or equal to zero.
- subjectlength
-
Number of characters for the fetchsubject property Must be greater than or equal to zero.
- defaulthost
-
Valores retornados
Returns the information in an object with following properties:
- toaddress - full to: line, up to 1024 characters
- to - an array of objects from the To: line, with the following properties: personal, adl, mailbox, and host
- fromaddress - full from: line, up to 1024 characters
- from - an array of objects from the From: line, with the following properties: personal, adl, mailbox, and host
- ccaddress - full cc: line, up to 1024 characters
- cc - an array of objects from the Cc: line, with the following properties: personal, adl, mailbox, and host
- bccaddress - full bcc: line, up to 1024 characters
- bcc - an array of objects from the Bcc: line, with the following properties: personal, adl, mailbox, and host
- reply_toaddress - full Reply-To: line, up to 1024 characters
- reply_to - an array of objects from the Reply-To: line, with the following properties: personal, adl, mailbox, and host
- senderaddress - full sender: line, up to 1024 characters
- sender - an array of objects from the Sender: line, with the following properties: personal, adl, mailbox, and host
- return_pathaddress - full Return-Path: line, up to 1024 characters
- return_path - an array of objects from the Return-Path: line, with the following properties: personal, adl, mailbox, and host
- remail -
- date - The message date as found in its headers