(PHP 4, PHP 5, PHP 7, PHP 8)
imap_headerinfo — Read the header of the message
$imap,$message_num,$from_length = 0,$subject_length = 0Gets information about the given message number by reading its headers.
imapAn IMAP\Connection instance.
message_numThe message number
from_lengthNumber of characters for the fetchfrom property. Must be greater than or equal to zero.
subject_lengthNumber of characters for the fetchsubject property Must be greater than or equal to zero.
Returns false on error or, if successful, the information in an object with following properties:
personal, adl, mailbox, and hostpersonal, adl, mailbox, and hostpersonal, adl, mailbox, and hostpersonal, adl, mailbox, and hostpersonal, adl, mailbox, and hostpersonal, adl, mailbox, and hostpersonal, adl, mailbox, and hostR if recent and seen, N if recent and not seen, ' ' if not recent.U if not seen AND not recent, ' ' if seen OR not seen and recentF if flagged, ' ' if not flaggedA if answered, ' ' if unansweredD if deleted, ' ' if not deletedX if draft, ' ' if not draftfrom_length characterssubject_length characters| Version | Description |
|---|---|
| 8.1.0 | The imap parameter expects an IMAP\Connection instance now; previously, a valid imap resource was expected. |
| 8.0.0 | The unused defaulthost parameter has been removed. |