PHP.nl

imap_rfc822_parse_headers

imap_rfc822_parse_headers

Parse mail headers from a string

stdClass **imap_rfc822_parse_headers** string $headers string $default_hostname

Gets an object of various header elements, similar to . imap_header

headersThe parsed headers data

default_hostnameThe default host name

Returns an object similar to the one returned by , except for the flags and other properties that come from the IMAP server. imap_header

imap_rfc822_parse_adrlist