(PHP 4, PHP 5, PHP 7, PHP 8)
imap_rfc822_parse_headers — Parse mail headers from a string
imap_rfc822_parse_headers(string $headers, string $default_hostname = "UNKNOWN"): stdClass
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 imap_header(), except for the flags and other properties that come from the IMAP server.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.imap-rfc822-parse-headers.php