(PHP 4, PHP 5, PHP 7)
imap_headerinfo — Read the header of the message
$imap_stream
, int $msg_number
[, int $fromlength = 0
[, int $subjectlength = 0
[, string $defaulthost = NULL
]]] ) : objectGets information about the given message number by reading its headers.
imap_streamUm stream IMAP retornado por imap_open().
msg_numberThe message number
fromlengthNumber of characters for the fetchfrom property. Must be greater than or equal to zero.
subjectlengthNumber of characters for the fetchsubject property Must be greater than or equal to zero.
defaulthost
Returns FALSE on error or, if successful, the information in an object with following properties:
fromlength
characters
subjectlength characters